Adding basic date validation with to_integer functionality on string