How to check if a given date has passed? (PHP)

  PHP Scripts

You need to convert the string to time and compare with the actual time.

<?php

if( strtotime("2020-04-16") < time() ){
// Your date is in the past
} else {
// Your date is not in the past
}

?>