PHP script to compare dates
1 2 3 4 5 6 7 8 9 10 11 12 |
<?php $date1 = "2019-11-24"; $date2 = "2018-03-26"; if ($date1 > $date2) echo "$date1 is latest than $date2"; else echo "$date1 is older than $date2"; ?> |
PHP script to compare dates
1 2 3 4 5 6 7 8 9 10 11 12 |
<?php $date1 = "2019-11-24"; $date2 = "2018-03-26"; if ($date1 > $date2) echo "$date1 is latest than $date2"; else echo "$date1 is older than $date2"; ?> |
© 2022 CODEHAVEN