Zen Cart Logo
Forums / General Questions / change date format how??

change date format how??

Locked

Views: 1,986

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
30 Oct 2008, 12:48 PM
#1
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

change date format how??

ive asked this before and done it before but can i for the life of me remember how to do it or find my post for over a year ago.

how can i change the date format from us m/d/y to uk format d/m/y??

thanks

30 Oct 2008, 12:53 PM
#2
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: change date format how??

includes/languages/english.php -- adapt if using overrides

around line #24

define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()

Switch the %d and %B around, like this:

define('DATE_FORMAT_LONG', '%A %B %d, %Y'); // this is used for strftime()

30 Oct 2008, 1:20 PM
#3
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

Re: change date format how??

thanksbut is it not the line before??

define('DATE_FORMAT_SHORT', '%d/%m/%Y'); // this is used for strftime()

??

30 Oct 2008, 1:54 PM
#4
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: change date format how??

You'll notice two lines, one right after the other:

DATE_FORMAT_SHORT
DATE_FORMAT_LONG

Change both or whichever one you want.