Add a ParseDate class to handle parsing of a date input