J jiangone Unregistered / Unconfirmed GUEST, unregistred user! 2001-03-26 #2 在windows的控制面版中的区域设置里, 有设置日期分隔符,你可以试试。
L LanFairy Unregistered / Unconfirmed GUEST, unregistred user! 2001-03-26 #3 先用DateToStr函数转化成字符串,然后再分析字符串就行了
M mataijin Unregistered / Unconfirmed GUEST, unregistred user! 2001-03-26 #4 好象是FORMATDATETIME(),或者是FORMAT
D djdsz Unregistered / Unconfirmed GUEST, unregistred user! 2001-03-26 #5 formatdatetime('yyyymmdd',date).OK
G gray Unregistered / Unconfirmed GUEST, unregistred user! 2001-03-26 #6 用FormatDateTime函数比较简便. 比如: sdate,stime:string; sdate:=FormatDateTime('yyyymmdd',date) stime:=FormatDateTime('hhnnss',time)
用FormatDateTime函数比较简便. 比如: sdate,stime:string; sdate:=FormatDateTime('yyyymmdd',date) stime:=FormatDateTime('hhnnss',time)