0

I have this code:

$date_parsed = strtotime($answer['answer']);
$required_date_parsed = strtotime('-16 years');

if ($date_parsed > $required_date_parsed) {
    $row = null;
    break 1;
}

And for some reason 2041-11-30 does not go into the if statement while it is obviously bigger than 16 years ago. Dates like 1980-04-18 do go into the if block as they should. Why is this happening?

JordyvD
  • 1,565
  • 1
  • 18
  • 45

0 Answers0