Skip to main content
I have set user's locale to en_IN and date.format() shows correctly in dd/mm/yyyy format. However, within apex:form, apex:input the current date is shown in mm/dd/yyyy format. How can I make this to use user's locale ? (end date is shown fine)

 

          <apex:outputLabel value="Start Date" for="start_date"/>

 

          <apex:input type="date" required="true" id="start_date" value="{!saleInfo.startDate}"/>

 

          <apex:outputLabel value="End Date" for="end_date"/>

 

          <apex:outputLabel value="{!saleInfo.endDateStr}"/>

 

.. from controller:

 

   class SaleInfo {

 

        public date startDate { get; set; }

 

...

 

        saleInfo.endDateStr = saleInfo.endDate.format();

 

...

 

 
1 answer
  1. Nov 6, 2015, 2:14 AM
    Hello Sarav,

     

    This community is focused on help with declarative configuration changes and non-programmatic solutions.  You have a better chance of getting this issue resolved if you post it on one of the following forums [lots of talented developers out there who must have worked on similar problems before]:

    For any configuration changes and point and click design solutions, feel free to post in this community and we will be glad to help you out.     

0/9000