一个简单的时间问题 Label1.Caption := FormatDateTime('yyyy', IncMonth(now, -12));Label1.Caption := Copy(DateTimeToStr(IncMonth(Now, -12)), 1, 4); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 请参考:var y,m,d:word;decodedate(date(),y,m,d);y:=y-1;showmessage(inttostr(y)); var a:tcalendar;begin label1.caption:=inttostr(a.year);end; 今年是2002,now中的年份当然是2002而非2001Label1.Caption:=FormatDateTime('yyyy',now);Label1.Caption := IntToStr(StrToInt(copy(DateTimeToStr(Now),1,4))-1); Label1.Caption:=FormatDateTime('yyyy',now-365); Up!Up!Up!Up!Up!-------------------------你给我分我捧你!不给我分我扁你! decodedate(date(),y,m,d);encodedate(y,1,1)-1 发票程序 请教高手。。。 dbmemo输入问题 delphibbs网站怎么了?20070908 求助数据库提交出错 DBGridEh的问题! 如何实现透明的label啊? 调查:你是Delphi程序员吗...... 怎样让datetimer 默认为当前日期?? InstallShield…… 怎样产生一个随机函数,然后把一张表的内容定时填到另一张表里(谢谢) 这个问题谁能答好,再给500分
var y,m,d:word;decodedate(date(),y,m,d);
y:=y-1;
showmessage(inttostr(y));
a:tcalendar;
begin
label1.caption:=inttostr(a.year);
end;
Label1.Caption := IntToStr(StrToInt(copy(DateTimeToStr(Now),1,4))-1);
你给我分我捧你!
不给我分我扁你!
encodedate(y,1,1)-1