PHP Code
$start_date = “2016-10-11”;
$endStrToTime = strtotime($end_date);
$startStrToTime = strtotime($start_date);
if ($endStrToTime > $startStrToTime)
echo “$end_date is newer than $start_date”;
else
echo “$end_date is older than $start_date”;
Leave a comment