catch error in date_pattern