Hi,
I have the following code:
if ($date1 > $deadline or $date2 > $deadline) {
echo "older";
}
else {
echo "good";
}
Where
date1 = 2009-09-20 10:00:00
date2 = 2009-09-29 10:00:00 or sometimes 0000-00-00 00:00:00 depending on whether the user has changed the submitted input or not
deadline = 2009-09-25 10:00:00
My problem is that in some cases my date 2 has no data entered so it is actually 0000-00-00 00:00:00
How can I take this into account so I ignore the validation of date2 if its 0000-00-00 00:00:00???
Thank you