function StrToDate(const s: string): TDateTime; s: string to be converted Result: date in a TDateTime format
This function will try to convert "yyyy-mm-dd" string into TDateTime format.