I am trying to compare today and a given date in PHP, and I am getting some unexpected results.
Here is some output I have:
echo time(); // 1315940430
echo strtotime("+20 days", $date_string); // 1730010
echo $date_string; // 2010-9-30
and when I try something like this:
if (date() > date('Y-m-d', strtotime("+20 days", $date_string)))
{
}
And the check always returns true no matter what the $date_string is. Any idea how to fix this?
$date_string?1730010seems way to low for ... lets say: some serious date.