Return to Snippet

Revision: 5945
at April 15, 2008 14:39 by isaac

Initial Code
//This code is extracted from the comments on the docs

# Date: y-m-d => d-m-y
$time =explode("-","2008-01-01");
print implode("-",$time);

//Will return: 01-01-2008.

Initial URL

Initial Description
This changes the date format from y-m-d to d-m-y on PHP. It's easy to change the - to / or spaces...

Initial Title
Easy transform date format y-m-d => d-m-y on PHP

Initial Tags
php, date, format

Initial Language