Skip to Content

TheBlogReaders.com

Salesforce.com, PHP, MySQL, Javascript, Ajax, Htacces

How to format a date in VisualForce?

Be First!
by April 4, 2012 Visual Force
APEX Class:
public List getCaseAttachmentList(){
  if(caseId != null && caseId != ”) {
 string attachCaseQry = ‘Select Id, Name, Body, CreatedDate From Attachment where ParentId = \”+caseId+ ‘\”;
 caseAttachmentList = (List)Database.query(attachCaseQry);
 system.debug(‘Attachment Result:’ + caseAttachmentList);
 
  }
  return caseAttachmentList;
}
VisualForce Page:
 
 
Output:
03/30/2012
04/02/2012
04/01/2012

(348)

Previous
Next

Leave a Reply