How to set date format for XWiki?
Last modified by Nikita Petrenko on 2025/05/23
If you prefer a more detailed or readable format, you can customize it in: Administer XWiki → Content → Localization → Date / Time → Date Format
For instance, using the mask EEE MMM dd yyyy
where EEE
- short day of the week (e.g., Thu). For the full version, use EEEE
;
MMM
- short month name (Dec). For the full version, use MMMM
;
dd
- day of the month;
yyyy
- year.
This will change the date representation to: Thu Dec 28 2023
You can also use other formats, such as:
EEEE, dd MMM yyyy hh:mm a
will be represented as Thursday, 28 Dec 2023 12:30 PMEEEE, yyyy/MMM/dd hh:mm z
will be represented as Thursday, 2023/Dec/28 12:30 EET
Check full explanation of patterns that can be used for date and time, from official Oracle website.
Note: If your XWiki is multilingual, the date representation may vary. For instance, some languages display the short day of the week in lowercase.