{"id":44296,"date":"2015-03-10T03:54:59","date_gmt":"2015-03-10T07:54:59","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=44296"},"modified":"2016-02-18T03:52:53","modified_gmt":"2016-02-18T08:52:53","slug":"opencart-2-x-how-to-change-date-format","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/opencart-2-x-how-to-change-date-format.html","title":{"rendered":"OpenCart 2.x. How to change date format"},"content":{"rendered":"<p>\r\n<p>Hello! This tutorial shows how to change date format in OpenCart 2.x.<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=o8tpHFk4SeQ?width=1280&amp;height=720\" rel=\"prettyPhoto\">OpenCart 2.x. How to change date format<\/a><\/p>\r\n<p>You may want to change the date format in your store depending on what country you are selling your products in.<\/p>\r\n<p>Let&#8217;s learn how to change the date format in your OpenCart store to the desired one.<\/p>\r\n<p>You may find the date in some parts of your store, like Reviews section as shown in the screenshot above:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/03\/opencart_2.x._how_to_change_date_format_1.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/03\/opencart_2.x._how_to_change_date_format_1-300x120.png\" alt=\"opencart_2.x._how_to_change_date_format_1\" width=\"300\" height=\"120\" class=\"aligncenter size-medium wp-image-44297\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/opencart_2.x._how_to_change_date_format_1-300x120.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/opencart_2.x._how_to_change_date_format_1-150x60.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/opencart_2.x._how_to_change_date_format_1.png 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>The tutorial assumes you are logged in to your FTP\/hosting control panel File Manager. In our case, we will use the File Manager to perform the changes.<\/p>\r\n<ol>\r\n<li>\r\n<p>Go to <strong>\/catalog\/language\/english\/<\/strong> (or another directory under &#8220;\/catalog\/language\/&#8221; with needed language) directory and open the <strong>default.php<\/strong> file for editing:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/03\/opencart_2.x._how_to_change_date_format_2.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/03\/opencart_2.x._how_to_change_date_format_2-300x165.png\" alt=\"opencart_2.x._how_to_change_date_format_2\" width=\"300\" height=\"165\" class=\"aligncenter size-medium wp-image-44298\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/opencart_2.x._how_to_change_date_format_2-300x165.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/opencart_2.x._how_to_change_date_format_2-150x82.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/opencart_2.x._how_to_change_date_format_2.png 970w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>Locate the following code in the opened file:<\/p>\r\n<pre class=\"brush:php\">$_['date_format_short']     = 'd\/m\/Y';<\/pre>\r\n<\/li>\r\n<li>\r\n<p>The value you need to edit is: <strong>d\/m\/Y<\/strong> , where <strong>d<\/strong> is the <strong>Date<\/strong>, <strong>m<\/strong> is the <strong>Month<\/strong> and <strong>Y<\/strong> &#8211; <strong>Year<\/strong>.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Just change the order to the desired one, e.g.: <strong>m\/d\/Y<\/strong> , so the <strong>Month<\/strong> goes first.<\/p>\r\n<\/li>\r\n<\/ol>\r\n<p>Save the file to apply your changes. Go to your store front-end and refresh the page to see the changes.<\/p>\r\n<p>The date format has been successfully changed:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/03\/opencart_2.x._how_to_change_date_format_3.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/03\/opencart_2.x._how_to_change_date_format_3-300x120.png\" alt=\"opencart_2.x._how_to_change_date_format_3\" width=\"300\" height=\"120\" class=\"aligncenter size-medium wp-image-44299\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/opencart_2.x._how_to_change_date_format_3-300x120.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/opencart_2.x._how_to_change_date_format_3-150x60.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/opencart_2.x._how_to_change_date_format_3.png 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>You may also want to change the date format in your store admin panel:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/03\/opencart_2.x._how_to_change_date_format_4.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/03\/opencart_2.x._how_to_change_date_format_4-300x196.png\" alt=\"opencart_2.x._how_to_change_date_format_4\" width=\"300\" height=\"196\" class=\"aligncenter size-medium wp-image-44300\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/opencart_2.x._how_to_change_date_format_4-300x196.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/opencart_2.x._how_to_change_date_format_4-150x98.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/opencart_2.x._how_to_change_date_format_4.png 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>In order to do that, you should go to the same language file located in your <strong>\/admin\/<\/strong> directory, so the full path would be: <strong>\/admin\/language\/english\/<\/strong>  (or another directory under &#8220;\/admin\/language\/&#8221; with needed language).<\/p>\r\n<p>Change the date format query the same you did for your front-end and save the file to apply your changes.<\/p>\r\n<p>Refresh the page to see the date format is successfully changed in your admin panel:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/03\/opencart_2.x._how_to_change_date_format_5.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/03\/opencart_2.x._how_to_change_date_format_5-300x196.png\" alt=\"opencart_2.x._how_to_change_date_format_5\" width=\"300\" height=\"196\" class=\"aligncenter size-medium wp-image-44301\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/opencart_2.x._how_to_change_date_format_5-300x196.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/opencart_2.x._how_to_change_date_format_5-150x98.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/opencart_2.x._how_to_change_date_format_5.png 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>This is the end of the tutorial, you have learnt how to change date format in OpenCart.<\/p>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=o8tpHFk4SeQ?width=1280&amp;height=720\" rel=\"prettyPhoto\">OpenCart 2.x. How to change date format<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>This tutorial shows how to change date format in OpenCart 2.x.<\/p>\n","protected":false},"author":68,"featured_media":44302,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1156],"tags":[843,804,1157],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/44296"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/68"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=44296"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/44296\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/44302"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=44296"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=44296"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=44296"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}