php date is before code example Example: php date is before if( strtotime($database_date) > strtotime('now') ) { ...