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
Shifs SalheenShifs Salheen 

Locale Format for outputText

Hi ,
I need locale format for apex:outputText.
 
Abhishek Vishwakarma 5Abhishek Vishwakarma 5
Hi,

I guess you are looking something like this :
<apex:outputField value="{0,date,MM/dd/yyyy}">
	<apex:param value="{!fieldvalue}" />
</apex:outputField>

Please have a check and let me know.

Abhishek
 
Ishwar ShindeIshwar Shinde
Hope below can help you in some way - 

The format of date and date time fields is controlled by the locale setting of the profile of the user that displays them. 
Sometimes it is appropriate to change this or to allow the user to select a different language format (i.e. DD/MM/YYYY, which is the European format as opposed to MM/DD/YYYY which is the format used in the US)
This format can be changed by using the "language" attribute on the apex:page tag 

Resolution: In order to change the language of a page the language attribute must be set appropriately in the <apex:page> tag.
It must use the correct language code for example if Italian was the language that was desired the correct attribute to use would be 
<apex:page language="it-IT"> 
for Spanish it would be
<apex:page langiage="es-ES">
and so on for all the other supported languages.

Links:
https://help.salesforce.com/apex/HTViewSolution?id=000003084&language=en_US

https://help.salesforce.com/HTViewSolution?id=000187671&language=en_US