Return to Snippet

Revision: 5946
at April 15, 2008 14:42 by isaac


Initial Code
//This code is extracted from the comments on the php.net docs
// Quickest: Y-m-d => Brittish Format
print date("d.m.Y",strtotime("2008-01-01"));

//Will return: 01.01.2008.

Initial URL
http://www.php.net/manual/es/function.date.php#81946

Initial Description
This changes the date format from y-m-d to d-m-y on PHP

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

Initial Tags
php, date, format

Initial Language
PHP