Page 1 of 1

Date

Posted: Fri Dec 12, 2003 3:10 pm
by cartesio
How change the format date:(example) Tuesday, January 19th 2003 to 2003-01-19?
Can you help me?
Thanks you...

Posted: Sat Dec 13, 2003 10:10 am
by jhermanns
you can change that by creating a custom printEntries() function or in the language file, i think

Posted: Fri Dec 19, 2003 6:52 pm
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).