You need to sign in to do that
Don't have an account?

Formatting Visualforce datetime tag
Hello,
I have a dateTime picker used in the tags as follows:
<apex:input label="End Date: " type="datetime-local" value="{!endDate}"/>
Users in my organization want to have it displayed as DD/MM/YYYY, since, the picker displays date as MM/DD/YYYY.
Could you, please, help me in solving this issue?
I thank you.
Regards,
Vijay Birsingh.
I thank you for your help. I have changed the dateTime picker in a date picker for the needs of my organization.
Regards,
Vijay.
All Answers
try the below format,
<apex:outputText value="{0,date,dd/MM/yyyy}">
<apex:param value="{!End_Date__c }" />
</apex:outputText>
Thanks,
Gaurav
I thank you for your help. I have changed the dateTime picker in a date picker for the needs of my organization.
Regards,
Vijay.