Friday, May 25, 2012

Formatting a date in Visualforce


%LT;apex:outputText value="{0,date,dd-MMM-yy}"%GT;
 
%LT; apex:param value="{!inv.Invoice_Date_Sent__c}"/ %GT;
  %LT;/apex:outputText
%GT;

 


I forgot it once, I'll forget it again...

No comments: