Y yangyi_allen Unregistered / Unconfirmed GUEST, unregistred user! 2004-06-10 #1 字符串"20040601" 怎么转成datetime? 3x!
L LeeChange Unregistered / Unconfirmed GUEST, unregistred user! 2004-06-10 #2 var y, m, d: Word; y:=StrToInt(Copy(s, 1, 4)); m:=StrToInt(Copy(s, 5, 2)); d:=StrToInt(Copy(s, 7, 2)); EncodeDate(y, m, d)
var y, m, d: Word; y:=StrToInt(Copy(s, 1, 4)); m:=StrToInt(Copy(s, 5, 2)); d:=StrToInt(Copy(s, 7, 2)); EncodeDate(y, m, d)
Z zurich Unregistered / Unconfirmed GUEST, unregistred user! 2004-06-10 #5 var date2:Tdate; s:string; begin s:= '20040601'; date2:=strtodate(copy(s,1,4)+'-'+copy(s,5,2)+'-'+copy(s,7,2)); showmessage(datetostr(date2));
var date2:Tdate; s:string; begin s:= '20040601'; date2:=strtodate(copy(s,1,4)+'-'+copy(s,5,2)+'-'+copy(s,7,2)); showmessage(datetostr(date2));