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