IncMonth returns a date shifted by a specified number of months.
Unit
SysUtils
Category
date/time routines
function IncMonth(const Date: TDateTime; NumberOfMonths: Integer): TDateTime;
Description
IncMonth returns the value of the Date parameter, incremented by NumberOfMonths months. NumberOfMonths can be negative, to return a date N months previous.
If the input day of month is greater than the last day of the resulting month, the day is set to the last day of the resulting month. The time of day specified by the Date parameter is copied to the result.
푸하하 wrote:
> 여기 질문 있습니다.!
>
> datetime형의 날짜 'yyyymmdd'에서 한달씩 증가하게 하는 방법 좀 가르켜 주세요.
NumberOfMonths의 값은 물론 마이너스 값도 가능하구요..
IncMonth returns a date shifted by a specified number of months.
Unit
SysUtils
Category
date/time routines
function IncMonth(const Date: TDateTime; NumberOfMonths: Integer): TDateTime;
Description
IncMonth returns the value of the Date parameter, incremented by NumberOfMonths months. NumberOfMonths can be negative, to return a date N months previous.
If the input day of month is greater than the last day of the resulting month, the day is set to the last day of the resulting month. The time of day specified by the Date parameter is copied to the result.
푸하하 wrote:
> 여기 질문 있습니다.!
>
> datetime형의 날짜 'yyyymmdd'에서 한달씩 증가하게 하는 방법 좀 가르켜 주세요.
>
> 20001101 에서
>
> 20001201
>
> 20010101 이런식으로요.