check_date_condition