How do I format date that will work on both PHP 4 and 5. I want to format date from from YYYY-MM-DD to DD/MM/YYY and vice versa. Is there a built-in function?
Thanks
Anyango
7:26 am on Oct 11, 2008 (gmt 0)
apply strtotime() to your date in this format YYYY-MM-DD and then send the strtotime() generated unixTimestamp to date() with your new format
TechMan
9:58 am on Oct 11, 2008 (gmt 0)
Thanks...it worked.
TechMan
10:02 am on Oct 11, 2008 (gmt 0)
On a related note when I run the following code it is treating "05" as month when in fact it's a day...any idea how to fix it