We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

More date formatting options in CP

Feature Requests

Ingmar Greil's avatar
Ingmar Greil
29,243 posts
9 years ago
Ingmar Greil's avatar Ingmar Greil

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.

       
Ingmar Greil's avatar
Ingmar Greil
29,243 posts
9 years ago
Ingmar Greil's avatar Ingmar Greil

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

       
Derek Jones's avatar
Derek Jones
7,561 posts
9 years ago
Derek Jones's avatar Derek Jones
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.

       
Ingmar Greil's avatar
Ingmar Greil
29,243 posts
9 years ago
Ingmar Greil's avatar Ingmar Greil
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.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.