I want to change the default date format like mm/dd/yy to dd/mm/yy for en_us locale in admin as well as front-end.

Don't want to change the locale for that.

  • Every where means ? What you want exactly ? – Payal Patel Sep 23 '16 at 9:04
  • You want all product details page ? – Payal Patel Sep 23 '16 at 9:11
  • Every where means each and every place where we show and take input by default Magento format, like order, invoice etc.... – Ashish Jagnani Sep 23 '16 at 9:17
  • I don't know it's working perfect or not. But you try in Stores/Configuration/General/Locale Options, set Locale and then you go in Stores/Configuration/Catalog/Date & Time Custom Options and set your format @AshishJagnani. – Payal Patel Sep 23 '16 at 9:41
  • If we change the locale from en_us to en_uk then it will work, other wise not. The other date setting is not working and I don't want to change the locale setting. – Ashish Jagnani Sep 23 '16 at 9:43

To change visible date format in date inputs You need to set proper Interface Locale in the Account Setting.

Account Setting > Interface Locale

After that You will see changes on the Edit Product Page.

Edit Product Page - date range in proper format

To change dates in frontend catalog go to: Stores > Configuration > Catalog > Catalog and find Date & Time Custom Options

There you can configure date format on store front catalog.

  • 1
    Changing the locale (at least to de_DE doesn't change the date format on order grid) – Fabian Blechschmidt Dec 14 '18 at 19:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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