3

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.

6
  • Every where means ? What you want exactly ? Commented Sep 23, 2016 at 9:04
  • You want all product details page ? Commented Sep 23, 2016 at 9:11
  • Every where means each and every place where we show and take input by default Magento format, like order, invoice etc.... Commented Sep 23, 2016 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. Commented Sep 23, 2016 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. Commented Sep 23, 2016 at 9:43

1 Answer 1

4

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
  • 1
    Changing the locale (at least to de_DE doesn't change the date format on order grid) Commented Dec 14, 2018 at 19:57

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.