What I want to do is check the date range cannot more than 6 months, else will return false
here is my sample code
<?php
$date_string1 = "2013-01-01";
$date_string2 = "2013-08-01";
$date1 = date('Y-m-d',strtotime($date_string1));
$date2 = date('Y-m-d',strtotime($date_string2));
if ($date1 and $date2 range more than 6 months, so will){
return false;
}else{
return true;
}
?>
here is my GUI
Any idea how to solve my problem? thanks