stringToDate
Converts a string produced by timeToString or dateToString back to a time, represented as a Date object.
Return
the parsed time as a Date object
Parameters
dateString
the date string to be converted
Throws
if dateString is not in the expected format