对一个日期格式,如何获得日 如(TDateTime)2004-5-9我想把9这个数字取出来给string1 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Var y,m,d:word present:TDateTime;begin decodedate(present,y,m,d) showmessage('日:'+IntToStr(d));end;也可以用FormatDateTime() vari:integer;begin i:=StrToint(FormatDateTime('dd',date)); ShowMessage(InttoStr(i));end; Unit DateUtils;function DayOf(const AValue: TDateTime): Word; TTT.java***** TST.CLASSSourceFileTst.java********** TTT.classTTTjava/lang/Object***** TST.CLASSTstjava/lang/Object***** decodedate(present,y,m,d)不行吗? 一句话搞定showmessage(formatdatetime('dd',now)) 1:formatdatetime('dd',now);2:dayof(now);3.decodedate(present,y,m,d)任选一个都可以。 1:formatdatetime('dd',now);2:dayof(now);3.decodedate(present,y,m,d)任选一个都可以。 Var y,m,d:word present:TDateTime;begin decodedate(present,y,m,d) showmessage('日:'+IntToStr(d));end; 求助如何设置动态得到多层关联的SQL数据并计算平均值 webbrowser 問題 关于dbgrid问题 AsString 255 问题 想把微信公众平台接口转成DELPHI的,那位大侠给个思路 将某个控件的flat属性设为true,如何将它的滚动条也设为flat? 出100分TreeView讨论,进来看看吧. 一个关于DBCombobox的问题,很简单的! "求救",请问哪里有Ehlib3.0 for Delphi7.0解密版下载!!! SQL难题??? ■■■■■如何开发一个窗口类?■■■■■■ 大虾救命!!!!
y,m,d:word
present:TDateTime;
begin
decodedate(present,y,m,d)
showmessage('日:'+IntToStr(d));
end;
也可以用FormatDateTime()
i:integer;
begin
i:=StrToint(FormatDateTime('dd',date));
ShowMessage(InttoStr(i));
end;
TTT.java***** TST.CLASS
SourceFile
Tst.java********** TTT.class
TTT
java/lang/Object
***** TST.CLASS
Tst
java/lang/Object
*****
不行吗?
showmessage(formatdatetime('dd',now))
2:dayof(now);
3.decodedate(present,y,m,d)
任选一个都可以。
2:dayof(now);
3.decodedate(present,y,m,d)
任选一个都可以。
y,m,d:word
present:TDateTime;
begin
decodedate(present,y,m,d)
showmessage('日:'+IntToStr(d));
end;