How to Convert Date format using php
Posted: Sun Feb 07, 2010 4:06 pm
This code will convert a date to yyyy-mm-dd format.
Code: Select all
<?php
$date = strtotime("02/28/2010");
$new_date_format = date("y-m-d", $date);
echo $new_date_format;
?>