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
Vijay BirsinghVijay Birsingh 

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.

Best Answer chosen by Vijay Birsingh
Vijay BirsinghVijay Birsingh
Hello All,
                 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

Hargobind_SinghHargobind_Singh
Hi, can you try to change the localization settings of the user to have dd/mm/yyyy format. This picker should show the same format that you see in normal page layouts. 
Gaurav_SrivastavaGaurav_Srivastava
Hi,

try the below format,

 <apex:outputText value="{0,date,dd/MM/yyyy}">
<apex:param value="{!End_Date__c }" />
</apex:outputText>

Thanks,
Gaurav
Vijay BirsinghVijay Birsingh
Hello All,
                 I thank you for your help. I have changed the dateTime picker in a date picker for the needs of my organization.

Regards,

Vijay.
                   
This was selected as the best answer