Add exception handling for non-date inputs when parsing Dates.