function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Darryl SinghDarryl Singh 

List of valid date formats for apex:outputText with apex:param

Hi Everyone!


Does anybody have a list of valid date format strings for the apex:outputText tag?  Here is sample code:


{<apex:outputtext value="{0,date,yyyy.MM.dd}"> <apex:param value="{!dr.Report_Date__c}" /> </apex:outputtext> }


This code works, but I would like to re-format Report_Date__c to "Tue Jan 17".  In general, I would like to know what are all the formatting strings available,not just for dates, but for everything else, too.  Can't find it in the Visualforce Developer's Guide.


This link says that you can use any of the messageFormats from Java.  See the list here