Returns a date shifted by a specified number of months.UnitSysutilsCategorydate/time routinesfunction IncMonth(const Date: TDateTime; NumberOfMonths: Integer): TDateTime ;DescriptionIncMonth 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.
;DescriptionIncMonth 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.
你可以自己作一个函数先decodedate,把月份加一后在encodedate返回
其实他的方法是最好的,而且我以前都没有注意到
这个函数.