A archy Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-06 #1 怎样给TDataTime变量同时赋年月日时分秒?EncodeTime和EncodeDate只能赋一部分的值 难道是给一个变量赋两次?
D dongberlin Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-06 #2 你可以用StrToDatetime来赋值,代码如下: var abc: TDatetime; begin abc:=StrToDateTime('2001-12-31 22:33:44'); Edit1.Text:=DatetimeToStr(abc); end;
你可以用StrToDatetime来赋值,代码如下: var abc: TDatetime; begin abc:=StrToDateTime('2001-12-31 22:33:44'); Edit1.Text:=DatetimeToStr(abc); end;
Z zhihuali Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-06 #3 var TheDateTime:TDateTime; begin TheDateTime:=EncodeDate(2001,11,22)+EncodeTime(10,10,10,10); end;