strtodate这也出错,太晕了:报这没有重载的版本
DateTimePicker1.DateTime:=strtodate(AdoQuery1.Fields[2].AsString, 'yyyy-mm-dd ');
[解决办法]
DateTimePicker1.DateTime:=AdoQuery1.fieldbyname( 'SetupDate ').AsDateTime;
[解决办法]
DateTime <> strtodate
[解决办法]
function StrToDate(const S: string): TDateTime;
function StrToDate(const S: string;
const FormatSettings: TFormatSettings): TDateTime;
你看delphi的StrToDate的定义,没有两个参数都是字符串的方法