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