读书人

strtodate这也出错,太晕了:报这没有重

发布时间: 2012-02-07 17:45:37 作者: rapoo

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的定义,没有两个参数都是字符串的方法

读书人网 >.NET

热点推荐