Return to Snippet

Revision: 41989
at February 25, 2011 21:31 by ptiswitz


Initial Code
<?php
	$date = '25/02/2011';
	$date = implode('-', array_reverse(explode('/', $date)));
	$time = strtotime($date);
?>

Initial URL

                                

Initial Description
The date format is dd/mm/YYYY but you can replace slashes by anything else.

Initial Title
strotime for french date

Initial Tags
date, format

Initial Language
PHP