M mylovegirl Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-18 #1 怎么才能把系统的时间和日期分开 就是时,分,秒,年,月,日 各个分离 有劳有劳
J jsxjd Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-18 #2 showmessage(FormatDateTime('yyyy',now));//年 showmessage(FormatDateTime('mm',now)); //月 showmessage(FormatDateTime('dd',now)); //日 showmessage(FormatDateTime('hh',now)); //时 showmessage(FormatDateTime('nn',now)); //分 showmessage(FormatDateTime('nn',now)); //秒 showmessage(FormatDateTime('zzz',now)); //毫秒
showmessage(FormatDateTime('yyyy',now));//年 showmessage(FormatDateTime('mm',now)); //月 showmessage(FormatDateTime('dd',now)); //日 showmessage(FormatDateTime('hh',now)); //时 showmessage(FormatDateTime('nn',now)); //分 showmessage(FormatDateTime('nn',now)); //秒 showmessage(FormatDateTime('zzz',now)); //毫秒
薄 薄荷 Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-18 #4 还有两钟方法 1.decodeData(year,mon,day); 2.uses DateUtils; 然后可以用 yearOf(); MonthOf(); dayOf();
影 影 子 Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-18 #7 uses DateUtils; DecodeDateWeek
L luxindelphi Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-18 #8 我来晚了,用 1.decodeData(year,mon,day); 2.uses DateUtils; 然后可以用 yearOf(); MonthOf(); dayOf(); 不错。我都用过。
Q qianwt Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-18 #9 function DayOfWeek(Date: TDateTime): Integer;
S seaerwang Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-19 #10 label.Caption := DateToStr(Date)+‘ ’+TimeToStr(Time)