Date

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
cartesio
Posts: 2
Joined: Mon Dec 01, 2003 1:13 pm

Date

Post by cartesio »

How change the format date:(example) Tuesday, January 19th 2003 to 2003-01-19?
Can you help me?
Thanks you...
jhermanns
Site Admin
Posts: 378
Joined: Tue Apr 01, 2003 11:28 pm
Location: Berlin, Germany
Contact:

Post by jhermanns »

you can change that by creating a custom printEntries() function or in the language file, i think
jos
Posts: 3
Joined: Fri Dec 19, 2003 2:54 pm
Contact:

Post by jos »

The language file contains the parameter (If you use the english language file, this is: serendipity_lang_en.inc.php):

@define('DATE_FORMAT_1', 'l, F jS Y');

Change this into:

@define('DATE_FORMAT_1', 'Y-m-d');

for the format that you asked for (EEYY-MM-DD).
Post Reply