People who code: we want your input. Take the Survey

To change visible date format in date inputs You need to set proper Interface Locale in the Account Setting. After that You will see changes on the Edit Product Page. 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.


You can try this: // based on configuration // $locale = Mage::app()->getLocale()->getLocaleCode(); $locale = 'nl_NL'; $date = new Zend_Date($post->getCreatedTime()); $date->setLocale($locale); echo $date->toString(Zend_Date::DATE_LONG); Other date formates here:


try to this way $date = Mage::app()->getLocale()->date($product->getSpecialToDate(), Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT), null, false ); $promoEndDate = strtotime($date); For Date Format : const DATETIME_INTERNAL_FORMAT = 'yyyy-MM-dd HH:mm:ss'; const DATE_INTERNAL_FORMAT ...


To change any date to 24 format in SALES menu: override /vendor/magento/module-sales/view/adminhtml/ui_component/ xml that you need and add:<item name="dateFormat" xsi:type="string">MMM dd, YYYY, HH:mm:ss </item> for the date filed. As an example: <column name="created_at" class="Magento\Ui\Component\Listing\Columns\Date"> &...

Only top voted, non community-wiki answers of a minimum length are eligible