check_date_format() added