+1就行了,IncDay也可以: Returns a date shifted by a specified number of days.UnitDateUtilsCategorydatetime routinesDelphi syntax:function IncDay(const AValue: TDateTime; const ANumberOfDays: Integer = 1): TDateTime;
procedure TForm1.Button1Click(Sender: TObject); var i,dtBegin,dtEnd:integer; begin dtBegin:=Trunc(StrToDate('2005-03-01')); dtEnd:=Trunc(StrToDate('2003-03-31')); for i:=dtBegin to dtEnd do Memo1.Lines.Add(IntToStr(i)); end;
Returns a date shifted by a specified number of days.UnitDateUtilsCategorydatetime routinesDelphi syntax:function IncDay(const AValue: TDateTime; const ANumberOfDays: Integer = 1): TDateTime;
var
i,dtBegin,dtEnd:integer;
begin
dtBegin:=Trunc(StrToDate('2005-03-01'));
dtEnd:=Trunc(StrToDate('2003-03-31'));
for i:=dtBegin to dtEnd do
Memo1.Lines.Add(IntToStr(i));
end;