StringToDateTime will return a TDateTime value, built from the DateTimeStr value that is passed in.
DateTimeFormat describes the format of DateTimeStr - please refer to Date And Time Format Specifiers for help creating the DateTimeFormat parameter.
Declaration: Function StringtoDateTime( const DateTimeFormat : string; const DateTimeStr : string) : TDateTime
This example shows the date as a string variable, being converted into two (2) TDateTime formats.
A reference to this function can also be found under DateTime Functions at StringToDateTime (Conversion).