PDA

View Full Version : DavidJ's PHP tutorials and date formatting


JamesTaylor
12-04-2008, 03:37 PM
David mentions in one of his beginners tutorials about re-formating the date, was a tutorial ever released regarding this?

2bz2p
12-04-2008, 03:44 PM
Not sure, though the date and time formats can be found here.

http://www.w3schools.com/php/func_date_date.asp

They go into detail about the syntax after date()

Example (date of posting):

echo date(d M Y);

Will show

04 DEC 2008

*Note that it wasnt tested but hopefully you will get the gist.*

2b

davidj
12-05-2008, 07:00 AM
remember the quotes

Date("d/m/Y");

2bz2p
12-05-2008, 01:26 PM
awe, I knew I was missing something just couldnt put my finger on it and wasnt able to test it.

2b