Converts a string to a TDateTime value.UnitSysutilsCategorydate/time routinesfunction StrToDateTime(const S: string): TDateTime;DescriptionCall StrToDate to parse a string that specifies a date and time value. If S does not contain a valid date, StrToDate raises an EConvertError exception. The S parameter must be in the MM/DD/YY HH:MM:SS format. Specifying AM or PM as part of the time is optional, as are the seconds. Use 24-hour time (7:45 PM is entered as 19:45, for example) if AM or PM is not specified. Y2K issue: The conversion of two-digit year values is determined by the TwoDigitYearCenturyWindow variable. For more information, see StrToDate.Note: The format of the date and time string varies when the values of date/time formatting variables are changed.