I have a class as follows:
TFileResult = class
procedure SetDate(const Value: TDateTime);
property Date:TDateTime read FDate write SetDate;
what I want to be able to write some code as follows:
FileResult.Date := 'Apr 08 2006 15:46:23';
When I read back the Date property I want to read back a TDateTime of the above passed string.
The SetDate function would need to accept a string and be able to convert it to a TDateTime before updating it to FDate.
Is there a way to 'overload' the property in such a way to pass a different type of parameter to it?