3

I am based in the UK Where we format dates for 17th May 2018 like so:

17/5/18

Is it possible for the Craft Control Panel to use a specified format when listing entries' post date / expiry date etc?

1 Answer 1

4

Craft 2

The Date/Time formatting in the Control Panel is based on what locale you're using when you're viewing the Control Panel.

If you have eb_gb as a locale defined under Settings->Sites->Locales, then you can go to your user account settings and set your "Preferred Locale" settings to "British English" and you'll get the DD/MM/YYYY format.

Craft 3

The locale you're site is currently set to and the language your viewing the Control Panel in are now separate concepts. If you go to your user account, click "Preferences", you'll see a "Language" dropdown, which controls the date/time formatting of the Control Panel for you.

If you want to set this globally for users that haven’t yet set their preferred language then you can use the defaultCpLanguage config setting. This is also useful when migrating a site from Craft 2.x to 3.x as all existing users won’t have set that preference and it will default to en-US.

7
  • 2
    I'm on Craft 3, with the site set to en-gb, however showing the date fields in the entry list in the CP still shows the M/D/Y format, not D/M/Y. Commented Apr 20, 2018 at 8:12
  • 2
    @AdamMenczykowski updated answer for Craft 3
    – Brad Bell
    Commented May 1, 2018 at 18:49
  • 1
    Is there a way to force all users to use one format?
    – ianp
    Commented Feb 8, 2019 at 10:18
  • 1
    Same issue as Adam. I'm set to GB but it's still showing in the American date system. I find it remarkable that this and per-user timezones are still things unavailable in Craft... Commented Apr 10, 2019 at 9:12
  • 2
    I'd like to have the interface language to be english. date format like yyyy-mm-dd or even dd.mm.yyyy (German). Is that possible? Commented Aug 22, 2019 at 9:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.