You need to sign in to do that
Don't have an account?
Format Date On VF Page
Hi All,
i need to display related list of opportunities on visual force page with "created date" field. I am using Account as StandardController for the page.
My issue is regarding the format of CreatedDate field, by default it shows the value with time stamp but the desired format is 'dd/mm/yyyy'.
how can i change its format on Visual force page directly.
Thanks
Ajit Verma
i need to display related list of opportunities on visual force page with "created date" field. I am using Account as StandardController for the page.
My issue is regarding the format of CreatedDate field, by default it shows the value with time stamp but the desired format is 'dd/mm/yyyy'.
how can i change its format on Visual force page directly.
Thanks
Ajit Verma
-David
All Answers
-David
i tried it on my vf page but it's not working.
i am getting error Syntax error. Missing ')' . In vf page i am using <apex:column value="{!MONTH(Opp.CreatedDate)}"/>.
Thanks
Ajit
Hi ajitverma,
Try This:
thanks it works fine
Here's a snippet:
<apex:repeat value="{!wr.retsLicences}" var="wl">
<tr>
<td>{!wl.Name}</td>
<td>{!wl.Active__c}</td>
<td>{!DAY(wl.Maintenance_Expires__c)}/{!MONTH(wl.Maintenance_Expires__c)}/{!YEAR(wl.Maintenance_Expires__c)}</td>
</tr>
</apex:repeat>