IncAMonth
简述
返回参数Year、Month、Day指定年、月、日的时间之后NumberOfMonths个月的时间,并把这个时间的年、月、日存到参数Year、Month、Day中。
IncAMonth(var Year; Month; Day: Integer; NumberOfMonths: Integer);
| 名称 | 类型 | 说明 |
|---|
| Year | integer | 整数,年,年份 |
| Month | integer | 整数,月,月份 |
| Day | integer | 整数,日,日期 |
| NumberOfMonths | integer | 整数,月数 |
| 返回 | TDateTime | 日期 |
year:=2011;
month:=8;
day:=8;
IncAmonth(year,month,day,4);
Return EncodeDate(year,month,day);//输出40885