Description
Call PSCStrToDateTime to parse a string that specifies a date. If S does not contain a valid date, PSCStrToDateTime raises an EConvertError exception. By default PSCStrToDateTime is similar to the standard StrToDate function but if PSCOnStrToDateTime variable is assigned to some convertion procedure, this procedure is used for converting a string to TDateTime instead of standard StrToDate. PSCStrToDateTime is called from all places in the PSC library where string to TDateTime convertion is needed. Old value is passed in the OldValue parameter, so with help of OldValue custom date-time convertion routine can implement some kind of dates calculator, etc.