Page 1 of 1

[RESOLVED] Convert date from one format to another

Posted: Wed Sep 20, 2006 9:36 am
by rehandalal
Hi,

I have a number of dates stored in my mySQL database which are all of the format (Y-m-d).
eg: 2006-06-28

However when I show them on some PHP pages I wish to show them in the format (' jS F, Y ')
eg: 28th June, 2006

How would I go about doing this???

Thanks!

Rehan

[Edit: nevermind... got this working using strtodate()]

Posted: Wed Sep 20, 2006 9:46 am
by n00b Saibot
combine strtotime() with date() and there you have it...