Page 1 of 2

Changing Display Date Format

Posted: Tue Oct 13, 2009 6:48 am
by jbarrick
Currently all of the dates are displaying like (dd/mm/yyyy)

I need them to either display mm/dd/yyyy or (Spelled out) month dd, yyyy.

How do I do this?

Re: Changing Display Date Format

Posted: Tue Oct 13, 2009 7:12 am
by Daniel
look at the language files!

Re: Changing Display Date Format

Posted: Tue Oct 13, 2009 11:34 am
by jbarrick
OK I found it.

Re: Changing Display Date Format

Posted: Fri Apr 09, 2010 5:19 am
by laz0rama
i have found the date format in the main english language file (.../catalog/language/english/english.php), and i have changed it to my desired format. however, when i look at, for example, the list of orders, i still see the dates formatted euro style. i see in the database they are stored as datetime, so i'm assuming it isn't about how they are stored in the db. is there something else i am missing?

thanks!

Re: Changing Display Date Format

Posted: Fri Apr 09, 2010 5:23 am
by laz0rama
nevermind, i see my issue. i changed the date format for the catalog, but not for the admin pages. i changed it for admin in admin/language/english/english.php.

Re: Changing Display Date Format

Posted: Wed Jul 28, 2010 4:35 pm
by Karen
rph wrote:To recap, you need to change the file in TWO locations:

/admin/language/english/english.php
/catalog/language/english/english.php
Okay, I changed the long and short date formats in these two files.
But I'm still seeing year/month/date on the data tab for products.
I don't get this.
1.4.8b

Re: Changing Display Date Format

Posted: Wed Sep 08, 2010 1:54 am
by Grrrr
Not working for me either!

Re: Changing Display Date Format

Posted: Sat Apr 23, 2011 10:20 pm
by rswallow
I am not being contrary, but why would someone not put the date format in the settings rather than making it necessary to change the php files directly considering that the US and GB use different date formats?

Re: Changing Display Date Format

Posted: Thu Jan 05, 2012 12:36 am
by Concept211
I went ahead and created a vQmod for updating the dates to US format:
http://www.opencart.com/index.php?route ... on_id=4504

Enjoy!

Re: Changing Display Date Format

Posted: Thu Jan 05, 2012 5:51 am
by mybaysix
just downloaded your US dates and times, where do i download it in the opencart files???

Re: Changing Display Date Format

Posted: Thu Jan 05, 2012 7:08 am
by Concept211
mybaysix wrote:just downloaded your US dates and times, where do i download it in the opencart files???
First install vQmod: http://code.google.com/p/vqmod/

And then upload my .xml file to the /vqmod/xml/

Re: Changing Display Date Format

Posted: Thu Jan 05, 2012 7:36 am
by mybaysix
great thank you so much! everything works!

Re: Changing Display Date Format

Posted: Thu Jan 05, 2012 7:44 am
by Concept211
Glad to help :)

Re: Changing Display Date Format

Posted: Fri Jan 20, 2012 5:42 am
by Mike Guenther
hmm...when I use this plugin it fixes the date great, but it breaks my site? A lot of the jquery doesnt work as well as products not adding to cart.

http://sunnybunnyeastereggs.com/store/ is my site. I removed the plugin to get the site working properly.

Any ideas?

Re: Changing Display Date Format

Posted: Thu Dec 06, 2012 10:58 pm
by thedesignparlor
Change the date available (from the Data tab on Product page in admin panel) on the file:

admin/controller/catalog/product.php

on lines 867 and 869

Re: Changing Display Date Format

Posted: Sun Sep 29, 2013 7:57 pm
by mfarmer
If anyone is still interested... All you have to do is edit the file located at:
{yourwebsite.com}\catalog\language\english\english.php

The first two lines are the time and date settings for the site.

If you want a good reference to go by, the php date page is a great one. It is located at:
http://www.php.net/manual/en/function.date.php

Hope that helps anyone who finds this post in the future!

Re: Changing Display Date Format

Posted: Fri Dec 06, 2013 12:52 pm
by exibar
mfarmer wrote:If anyone is still interested... All you have to do is edit the file located at:
{yourwebsite.com}\catalog\language\english\english.php

The first two lines are the time and date settings for the site.

If you want a good reference to go by, the php date page is a great one. It is located at:
http://www.php.net/manual/en/function.date.php

Hope that helps anyone who finds this post in the future!
I did this but the date is still showing incorrectly. Do I have to restart PHP on my web server? Only problem is that my server is hosted and I only have access through cPanel... anyone know how to restart web services via cPanel?

thanks!
Mike B

Re: Changing Display Date Format

Posted: Wed Oct 15, 2014 2:34 am
by ten80north!
Hi,
For those of you using Mijoshop (the Joomla component that bridges Opencart and Joomla), you will need to modify the following files in your Joomla installation. For some reason the Mijoshop developers decided to overwrite the date formats in the Opencart language files.

/language/en-GB/en-GB.com_mijoshop.ini
/administrator/en-GB/en-GB.com_mijoshop.ini

Re: Changing Display Date Format

Posted: Fri Feb 27, 2015 4:59 am
by alces
ten80north! wrote:Hi,
For those of you using Mijoshop ...
Thanks, this is what I was looking for. Works perfectly.

Re: Changing Display Date Format

Posted: Fri Sep 02, 2016 8:34 am
by deunus
How to change the date??? My website shows yesterday date.