Currently users can only choose between “American” (mm/dd/yyyy) and “European” (yyy-mm-dd) date formatting options in the control panel. I propose to add a formatting variable (the way we have it for date variables already) that would allow users to specify the date format in more detail. This would also allow to do away with the 12H/24H formatting option, since users could simply modify the string accordingly, even hiding the time altogether if they don’t need it.
If it’s not a good fit for the CP, a config.php variable would suffice.
Actually, this seemed promising, but I was unable to get it to work: https://docs.expressionengine.com/latest/general/system_configuration_overrides.html#date-format
Actually, this seemed promising, but I was unable to get it to work: https://docs.expressionengine.com/latest/general/system_configuration_overrides.html#date-format
You can’t have set a localization preference for your member, or it will override the default that that config variable uses.
The challenge with allowing open formatting is that some formats can be ambiguous on certain dates, and it’s not possible to guarantee that we are turning that string into the desired timestamp.
The challenge with allowing open formatting is that some formats can be ambiguous on certain dates, and it’s not possible to guarantee that we are turning that string into the desired timestamp.
That makes sense, EE having to know what format is currently in use. In that case I merely propose an additional “proper” European date format like dd.mm.yyyy. Not that I couldn’t really live with ISO date, but it’s come up a number of times.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.