i am writing a report that runs by date selection, a start date and an end date. Of course the start date can not be greater than the end date so i put this in my code:
if ($start_date > $end_date)
.
.echo start date cant be greater than end date
.
else ................
but the code only works if the end dates day or month is less than the start days, example:
THIS WORKS
11-01-1970 = start date
11-02-2000 = end date
(start date is less than end date)
THIS DOESNT BUT SHOULD
11-01-1970 = start date
10-01-2000 = end date
(start date is still less than end date)