So I am experiencing a really odd behaviour and any consultancy would be much appreciated.
$start_date = '02-07-2014';
$finish_date = '05-05-2014';
if($start_date < $finish_date'){
return true;
}else{
return false;
}
In this case true
is returned. The only time false
is returned is when the difference between the two days is not bigger than around two weeks.
Moreover, if the finish date is really bigger than start date, true
is always returned.