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 slashRanganathan– Ranganathan2019-01-07 06:11:12 +00:00Commented 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.fmsthird– fmsthird2019-01-07 06:41:44 +00:00Commented Jan 7, 2019 at 6:41
- Date block from which module?Ranganathan– Ranganathan2019-01-07 07:09:30 +00:00Commented Jan 7, 2019 at 7:09
- I mean class , you can look from magento\framework\Stdlib\DateTimefmsthird– fmsthird2019-01-07 07:25:03 +00:00Commented 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....Navin Bhudiya– Navin Bhudiya2019-05-09 11:37:26 +00:00Commented May 9, 2019 at 11:37