Hi,
How to find difference between two dates.
I have to find if install date is less than 8 weeks from the date of entry.
How can i find this, my code is below.
<? php
if($_POST[submit]){
$install_date_entered = $_POST[aninstallyear]."-".$_POST[aninstallmonth]."-".$_POST[aninstallday];
$new_date_entered = $_POST[astartyear]."-".$_POST[astartmonth]."-01";
$datediff = ($install_date_entered - $new_date_entered ) ;
echo " The Difference between dates = $datediff";
}
?>
The date is selected using combo box.Year is selected seperately, month is selected seperately and day is selected seperately.
please help me in finding the difference between dates
Thanks