I want to be able to subtract one date from another and determine if the dates are five years or less apart using PHP using the mm/dd/yyyy format.
Please advise as to possible workable solutions, for example:
$thisdate = "05/06/2006";
$comparedate = "05/01/2001";
$difference = $thisdate - $thatdate;
If ($difference < 5){
do this
}
Jim Null
Please advise as to possible workable solutions, for example:
$thisdate = "05/06/2006";
$comparedate = "05/01/2001";
$difference = $thisdate - $thatdate;
If ($difference < 5){
do this
}
Jim Null