PHP script to compare dates $date2) echo "$date1 is latest than $date2"; else echo "$date1 is older than $date2"; ?>
$date2) echo "$date1 is latest than $date2"; else echo "$date1 is older than $date2"; ?>