- π¦πΉAustria elek
Thank you @mpdonadio, #3 made all clear for me. Don't know why I hat US-english instead of german in my browser settings. Well, I don't care or play around with those settings.
- π©π°Denmark ressa Copenhagen
I recently created π Use ISO 8601 format in Authored on field date picker Active , which may be a duplicate of this issue ... but if it's possible, perhaps it might be simpler to use ISO 8601 format for dates represented by numbers (i.e.
YYYY-MM-DD
) and hard code it that way, to make dates less ambiguous? Adding possibly relevant issues. - π¨π¦Canada xmacinfo Canada
The default date format were changed ( https://www.drupal.org/node/3467774 β ) for Drupal 11.1.x. Basically they try to get away from date format using number only.
Not sure if those date formats will have an impact for this issue as I did not install the 11.1.x branch yet.
Personally, for area where we need a compact date shown, I prefer the ISO 8601 like
YYYY-MM-DD
. - π¬π§United Kingdom joachim
Agreed that ISO 8601 is the nicest and most logical.
But the date picker should use the short date format that the site has configured, for consistency and localisation.
- π¬π§United Kingdom joachim
I mean the format set in core.date_format.short.yml, though it's true that could be configured by the user to be something that datepickers don't like.
- π©π°Denmark ressa Copenhagen
The default date format were changed ...
@xmacinfo: I know, I am the one who created the issue and updated the code :-)
That change does not affect the date picker in the form, as far as I can tell it's non-configurable ...
Also, in my opinion, using letters for month in the date picker would be a bad idea, and another potentially confusing GUI design choice.
Like I wrote -- and you both seem to agree -- it would be preferable to use ISO 8601
YYYY-MM-DD
format for use cases with compact and number-only options, such as the date picker.The HTML Date format (from "Date and time formats" page) uses ISO 8601, in fact:
HTML Date 2024-08-21
Feel free to visit the issue I created, which proposes setting a Drupal date standard for "human readable"- and "number"-dates:
#3467914: Define a standard for Date formats β
If you both add your support to the proposal, we just need one more supporter to get ISO 8601 approved for "number"-dates (compact), and we could perhaps then do π Use ISO 8601 format in Authored on field date picker Active , if you agree?
- π¨π¦Canada xmacinfo Canada
setting a Drupal date standard for "human readable"- and "number"-date
I agree and I starting following the other two issues you mentioned.
- π©π°Denmark ressa Copenhagen
Perfect, thanks @xmacinfo. It would be awesome to get date formats standardized in Drupal.