program Project1;
{$APPTYPE CONSOLE}
uses
System.SysUtils, System.DateUtils;
var X: Tdate;
begin
try
{ TODO -oUser -cConsole Main : Insert code here }
x:=IncDay(IncMonth(now, 2), 0);
WriteLn('Date: '+DateToStr(x));
WriteLn('Days between: '+IntToStr(DaysBetween(x, now)));
ReadLn;
except
on E: Exception do
Writeln(E.ClassName, ': ', E.Message);
end;
end.
Copyright © 2014 DelphiW.com 开发 源码 文档 技巧 All Rights Reserved
晋ICP备14006235号-8 晋公网安备 14108102000087号
执行时间: 0.040506839752197 seconds