W wuifc002 Unregistered / Unconfirmed GUEST, unregistred user! 2006-11-07 #1 请教一个delphi日期减去一个常数的问题,怎么求得:2006-10-30前3个月是哪个月? 2006-01-30 的前3个月是哪个月? delphi理有没有这类函数?
G guoyp2126 Unregistered / Unconfirmed GUEST, unregistred user! 2006-11-07 #3 IncMonth(strtodatetime('2006-10-30'),-3)
浪 浪人情哥 Unregistered / Unconfirmed GUEST, unregistred user! 2006-11-07 #4 给分吧 var Date1:TDate; begin Date1:=IncMonth(StrToDateTime('2006-11-7'),6); ShowMessage(DateTimeToStr(date1));//date1为半年(6个月)后的日期! end;
给分吧 var Date1:TDate; begin Date1:=IncMonth(StrToDateTime('2006-11-7'),6); ShowMessage(DateTimeToStr(date1));//date1为半年(6个月)后的日期! end;
X xinjinren Unregistered / Unconfirmed GUEST, unregistred user! 2006-11-07 #5 IncMonth(const Date: TDateTime; NumberOfMonths: Integer = 1): TDateTime;