I have a date fields which on displaying on VF page displays like 12/10/2012. But i want to display it like December 10, 2012. How can i do it? i am not getting the easy way.


You can accomplish this by using the format below

<apex:outputText value="{0,date,MMMM dd, yyyy}">
     <apex:param value="{!TODAY()}" />

Here is the supporting documentation for formatting dates with output text


And here is some documentation for using the java SimpleDateFormat



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.