Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

strtotime format

$date = '25/05/2010';
$date = str_replace('/', '-', $date);
echo date('Y-m-d', strtotime($date));
 
PREVIOUS NEXT
Tagged: #strtotime #format
ADD COMMENT
Topic
Name
7+8 =