Changing the date format in Liferay Forms
Written By
Katalin Györgyövics
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
Legacy Article
You are viewing an article from our legacy "FastTrack"
publication program, made available for informational purposes. Articles
in this program were published without a requirement for independent
editing or verification and are provided"as is" without
guarantee.
Before using any information from this article, independently verify its
suitability for your situation and project.
Issue
- I would like to change the date format of the Date Field in the Liferay Forms, it should be dd/mm/yyyy instead of mm/dd/yyyy.
Resolution
The Date Format of the Date Field in Liferay Forms (and in other functionalities that has Date fields) depends on the language/locale that is being used.
- In case you select English - United States in the Language Selector, the Date will be mm/dd/yyyy
- In case you select English - United Kingdom in the Language Selector, the Date will be dd/mm/yyyy
This is the intended behavior for these Languages, but there is no option to define a custom date format for a specific language.
In case you would like to change the date format of a Language, that can only be done through customization.
Did this article resolve your issue ?