Forums / General Questions / How do I change the Date format?

How do I change the Date format?

Locked

Views: 108,760

Results 41 to 60 of 69
This thread is locked. New replies are disabled.
18 Feb 2009, 11:38 AM
#41
didee avatar

didee

Zen Follower

Join Date:
Jan 2009
Location:
Queensland, Australia
Posts:
115
Plugin Contributions:
0

How do I change the Date format?

ok, i have gone thru all of these changes to the codes but there are a couple of bits of code that I dont seem to have the same as the the one shown.
number10
define('JS_DOB', '* The 'Date of Birth' entry must be in the format: xx/xx/xxxx (month/date/year).\n');

11

define('ENTRY_DATE_OF_BIRTH_ERROR', 'Is your birth date correct? Our system requires the date in this format: DD/MM/YYYY (eg 21/05/1970)');
define('ENTRY_DATE_OF_BIRTH_TEXT', '* (eg. 21/05/1970)');
define('ENTRY_EMAIL_ADDRESS', 'Email Address:');
define('ENTRY_EMAIL_ADDRESS_ERROR', 'Is your email address correct? It should contain at least ' . ENTRY_EMAIL_ADDRESS_MIN_LENGTH . '

www. stitchwith.me

10 Mar 2009, 2:13 PM
#42
fred_philpott avatar

fred_philpott

New Zenner

Join Date:
Jun 2006
Location:
South Africa
Posts:
11
Plugin Contributions:
0

Re: How do I change the Date format?

Just a quick tip from someone who always manages to screw things up.

  1. Make a copy of the original file and call it something like english.old

  2. Once you have your modified file working correctly make a copy called something like english.bak

Now if you screw up or overwrite the file with an update you can retrieve all your hard work!

12 Mar 2009, 9:30 AM
#43
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: How do I change the Date format?

fran911:

I too have the same problem and lot of work is pending due to this.
Can anyone give me a solution to thisHave you made the changes explained in posts 2 and 3 of this thread. If so, could you post the your definitions as they are now and the full file paths where you have made the changes.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

14 Apr 2009, 10:10 AM
#44
guyhancock avatar

guyhancock

New Zenner

Join Date:
Jun 2008
Location:
Brighton, Britain
Posts:
46
Plugin Contributions:
0

Re: How do I change the Date format?

Late in the day I know but I too would like to add my thanks to Phil for laying this out so clearly.

Just finished the edit and a check, all seems to be ok.

Thanks again

Guy

28 May 2009, 4:54 AM
#45
thevagr1 avatar

thevagr1

New Zenner

Join Date:
May 2009
Location:
Melbourne, Australia
Posts:
46
Plugin Contributions:
0

Re: How do I change the Date format?

You are a legend!!!!!!!!!!
this is great

15 Jun 2009, 7:19 AM
#46
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: How do I change the Date format?

seo4u:

Also you can login into your mysql to change them to you want date.:hug:

Exactly how would you do this on shared hosting??

15 Jun 2009, 7:22 AM
#47
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: How do I change the Date format?

seo4u:

Also you can login into your mysql to change them to you want date.Nonsense. Dates are held in the database in the internal MySQL format (aka ISO International standard). The database neither knows nor cares how they will be formatted for display on pages or in emails. That is determined by the relevant language file as described above, which is the only proper way to change date formats.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

28 Jun 2009, 10:39 PM
#48
anakeimai avatar

anakeimai

New Zenner

Join Date:
May 2009
Posts:
6
Plugin Contributions:
0

Re: How do I change the Date format?

Thanks Phil - I knew it wasn't easy!

3 Jul 2009, 6:15 AM
#49
erko avatar

erko

New Zenner

Join Date:
Jun 2009
Location:
Australia
Posts:
20
Plugin Contributions:
0

Re: How do I change the Date format?

Great set of instructions - simple and easy to follow. Thanks Phil.

13 Jul 2009, 3:59 PM
#50
nyunyi avatar

nyunyi

New Zenner

Join Date:
Jul 2009
Posts:
10
Plugin Contributions:
0

Re: How do I change the Date format?

a little bit of other!

Where can I translate the name of the months appearing on the index of my website? I've only found one language file containing them in the admin/includes/languages folder, but it has no effect, when I change them there.
Thank you

15 Jul 2009, 8:56 AM
#51
nyunyi avatar

nyunyi

New Zenner

Join Date:
Jul 2009
Posts:
10
Plugin Contributions:
0

Re: How do I change the Date format?

:bigups:

26 Jul 2009, 1:45 PM
#52
spid3r1987 avatar

spid3r1987

Zen Follower

Join Date:
Jul 2009
Posts:
497
Plugin Contributions:
0

Re: How do I change the Date format?

just to let people know..

IF you wish to change the date format to upload with EASYPOPULATE
admin>configuration>easypopulate>upload file date format

i may not know how yet, but i soon will....i hope :)

9 Aug 2009, 10:09 AM
#53
cybagirl avatar

cybagirl

Zen Follower

Join Date:
Jul 2009
Posts:
119
Plugin Contributions:
0

Re: How do I change the Date format?

Just wanted to say thank you so much for this tutorial very much appreciated :).

1 Oct 2009, 6:56 AM
#54
tilenk avatar

tilenk

New Zenner

Join Date:
Sep 2009
Posts:
37
Plugin Contributions:
0

Re: How do I change the Date format?

Hello.

This one could be very useful, however I have one slight problem with it

Phil says:

  1. open file includes/languages/<YOUR_TEMPLATE>/<YOUR_LANGUAGE>.php

I don't have a "/template-i'm-using/" folder inside the includes/languages/ folder :lookaroun :lookaroun

Can I create the f.i. "theme101" folder inside the languages and also copy the "slovenian.php" from \includes\languages folder?

3 Oct 2009, 6:49 AM
#55
razibur avatar

razibur

New Zenner

Join Date:
Oct 2009
Posts:
1
Plugin Contributions:
0

Re: How do I change the Date format?

You will need to look in the language file under /languages/english[or whatever language your using].php

Look for:

/** templates/*.php */

DEFINE('_ISO','charset=iso-8859-1');

DEFINE('_DATE_FORMAT','l, F d Y'); //Uses PHP's DATE Command Format - Depreciated

/**

  • Modify this line to reflect how you want the date to appear in your site

*e.g. DEFINE("_DATE_FORMAT_LC","%A, %d %B %Y %H:%M"); //Uses PHP's strftime Command Format

*/

DEFINE('_DATE_FORMAT_LC',"%A, %d %B %Y"); //Uses PHP's strftime Command Format

DEFINE('_DATE_FORMAT_LC2',"%A, %d %B %Y %H:%M");

and make the necessary alterations to have the date/time formatted as you wish.

Mengembalikan Jati Diri Bangsa|
Kenali Dan Kunjungi Objek Wisata Di Pandeglang

6 Oct 2009, 2:50 PM
#56
neweb avatar

neweb

New Zenner

Join Date:
May 2008
Posts:
17
Plugin Contributions:
0

Re: How do I change the Date format?

Worked for me :D
Thanks for taking the time to post the instructions step by step.
I have bookmarked this page for future sites.

This should be a feature in the Config section of the site.

1 Dec 2009, 2:31 PM
#57
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: How do I change the Date format?

But why when I complete signing up I got a blank page although the registration successfully made in !!

20 Dec 2009, 4:43 PM
#58
themysticangel avatar

themysticangel

New Zenner

Join Date:
Mar 2009
Posts:
8
Plugin Contributions:
0

Re: How do I change the Date format?

I have changed the files as stated but the date is still in the wrong order on the invoice status table (bottom left)

I have the time_zone_offset_v1-3-8a module installed could this be the problem? - the date seems fine everywhere else.

20 Jan 2010, 2:19 AM
#59
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: How do I change the Date format?

AngelDust:

Hi guys! Newbie here and am having problems with the date format as well. I tried the codes and solutions posted previously by other posters but the format is still incorrect. :( Has anyone tried to change the date format and did it successfully?

It WORKS!!

You have missed something in the instructions
or not used the overides correctly
or your files have not been uploaded correctly
(maybe it is working and you need to clear your browsers cache)

Lots of possible things that you have done wrong
It needs to be altered both in the admin and catalog sections.
You will need to go thru the instructions step by step and confirm each correction as you go

Also there are some obscure / little used dates that are not fixed.
If you need these you will have to track them down yourself

Which date(s) are you looking at that is(are) not correct?

5 Mar 2010, 10:44 AM
#60
integrity_designs avatar

integrity_designs

Zen Follower

Join Date:
Nov 2009
Location:
North Bendigo, VIC, Australia
Posts:
157
Plugin Contributions:
0

Re: How do I change the Date format?

Thanks heaps. Should definately be placed in the FAQ section or an option for Admin to change from US to UK/AUS ways.
Kind Regards