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
neeraj1neeraj1 

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.

 

 

cwall_sfdccwall_sfdc

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()}" />
</apex:outputText>

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