Activity Forums Salesforce® Discussions How can I change the Date format in Visualforce page?

  • Mohit

    Member
    September 5, 2016 at 7:18 am

    Hi Pranav,

    You can have date in this format by following this example:-

    <apex:outputText value="{0, date, MMMM d',' yyyy}">
    <apex:param value="{!FieldName}" />
    </apex:outputText>

    or by:-

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

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos