- Issue created by @ressa
As far as I can tell, there is no standard for date formats on drupal.org.
Some date formats in Drupal core were using the US format, for example the Default medium date for 7th of August:
Wed, 08/07/2024 - 11:24
The date format for Drupal core was recently updated in 📌 Use easily recognizable date format RTBC (Change record: Default date formats have changed → ) to use the date format "12 August 2024" as recommended by these resources:
It would be nice to standardize on an easily understandable format, such as "7 Aug 2024", which is already used on drupal.org, as can be see in issue dates under "Created".
If we adopted this change, the Drupal Project would benefit by having a universally and easily recognizable date format, and contrib module maintainers and Drupal core developers would know which date format to use.
I have created a documentation page Date formats → under "Develop > Creating modules" which could be revised until it's acceptable, and eventually be moved to https://www.drupal.org/docs/develop/standards → . This is the suggested standard:
Human readable date formats
It is recommended to use British English standard for human readable date formats, since it is used by most of the world, and easily understandable.
- 6 Aug 2019
- 6 August 2019
- Wednesday, 6 August 2019
For more, see:
- How to write the date correctly (IELTS)
- How to Write Dates Correctly in English (Grammarly)
- Overview of date formatting guidelines (Wikipedia)
Dates represented by numbers
When dates are represented with numbers they can be interpreted in different ways. ISO 8601 tackles this uncertainty by setting out an internationally agreed way to represent dates this way:
YYYY-MM-DD
resulting in "2023-02-23"
For a full explanation of these steps see the Coding Standards project page →
Active
Coding Standards