关于日期问题 如何得到前n年前的年份,比如我要的到前三年的年份为2002之后在把它转换成字符型的,多谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 procedure TForm1.Button1Click(Sender: TObject);var year:string; Iyear:Integer;begin ShortDateFormat:='yyyy'; Iyear:=StrToInt((DateTimetostr((Date())))); year:=IntToStr(Iyear-3); ShowMessage(year);end;//日期函数参见http://www.b2ing.com/bolg/blogview.asp?logID=75&cateID=11 procedure TForm1.Button1Click(Sender: TObject);begin ShowMessage(IntToStr(StrToInt(FormatDataTime('yyyy', Now)) -3));nd; 问题解决,高手,哈哈晚上结帖不过konhon(优华) 把date成了data,一点小错误,瑕不掩瑜,佩服 请问各个小问题 删除注册表下的某个变量的命令怎么写? 请高手帮看看,我的这个加密算法,哪里有问题?谢谢~ 如何将ado的数据导出到excel中去! 关于dblookupcombobox的疑问 Tcombobox能否显示无3D效果,height属性能改变?在D7中Tedit能做到 钱太多,过年了,就送点压岁钱吧! 请问:OleContainer控件中的word文档数据怎样置空(空白)?在线等候。。。 高手的前进道路 delphi xe5 datasnap 用SQLconnection连接SQL server 2005报错 高手们请出手! 50分求如何自动生成一个数学公式
var
year:string;
Iyear:Integer;
begin
ShortDateFormat:='yyyy';
Iyear:=StrToInt((DateTimetostr((Date()))));
year:=IntToStr(Iyear-3);
ShowMessage(year);
end;//日期函数参见http://www.b2ing.com/bolg/blogview.asp?logID=75&cateID=11
begin
ShowMessage(IntToStr(StrToInt(FormatDataTime('yyyy', Now)) -3));
nd;
晚上结帖
不过konhon(优华) 把date成了data,一点小错误,瑕不掩瑜,佩服