Takes in a date string entered by the user and tries to convert it to a struct tm.
tm
A date string.
Return value for the parsed date.
An TimeParseStatus result code indicating whether value was an empty string, a valid date, or an invalid date.
value