Sunday, 29 August 2021

How to formart Date in Visualforce page ?

 We can format date as per our need, Lets assume we want show date as Aug 8, 2021.

 <apex:outputLabel value="Resident DOB:" for="doiv" style="color:#3E3E3C">

          <apex:outputText value="{0,date,MMM dd,yyyy}" id="inamsd" style="color:#080707">

               <apex:param value="{!Eligibility_Summary__c.Resident_DOB__c}" />

           </apex:outputText> 

 </apex:outputLabel>

No comments: