Source Code:
(back to article)
<?php $date1 = "March 3, 2023"; $date2 = "March 4, 2023"; if (strtotime($date1) < strtotime($date2)) { echo "Date 1 is earlier than Date 2"; } else { echo "Date 1 is later than or equal to Date 2"; } ?>
Result:
Report an issue