+ Start a Discussion

How to convert date format to DD/MMM/YYYY in a visual force page?

I have visual force page where I need to change the date format in to DD/MMM/YYYY format. this format should be displayed in the front end only but in back end it should display the regular format .


Please help.




Does this help?  From the docs...


<apex:outputText value="The formatted time right now is: {0,date,yyyy.MM.dd G 'at' HH:mm:ss z}">
       <apex:param value="{!NOW()}" />

The apex:param value could be from your controller or a merge field.