I need to display the date format as "d.m.Y" in front end and Email templates, Is there any solution to complete this requirement?
1 Answer
Follow this from your Admin Panel Configuration
Stores > Catalog > Catalog >Date and Time Custom Options
You can set the Date order as you want in
Date Fields Order
, MM/DD/YY or DD/MM/YY or any things else, depend on the date format you require.
-
But i need to display like "DD.MM.YY"...Dot instead of slash Commented Jan 7, 2019 at 6:11
-
I see. for that you need to override a date block in order to apply the format you require.– fmsthirdCommented Jan 7, 2019 at 6:41
-
-
I mean class , you can look from magento\framework\Stdlib\DateTime– fmsthirdCommented Jan 7, 2019 at 7:25
-
did you get any solution for same ? i want to show dd/mm/yyyy on calnder once user select date.... Commented May 9, 2019 at 11:37