DB2DateTime.AddMonths(Int32 months) method
Adds specified months to the DB2DateTime instance.
The DB2DateTime.AddMonths(Int32 months) method is available for use only with the Informix® database server.
- Namespace:
IBM.Data.DB2Types
- Assembly:
IBM.Data.DB2 (in IBM.Data.DB2.dll)
Syntax
[Visual Basic]
Public Shared Function AddMonths (months As Int32) As DB2DateTime
[C#]
public DB2DateTime AddMonths (Int32 months)
[C++]
public:
DB2DateTime AddMonths (Int32 months)
[JScript]
public function AddMonths (months Int32) : DB2DateTime
Parameters
- months
- The number of months that you want to add to the existing DB2DateTime instance.
Return value
A new DB2DateTime structure that consists of the original DB2DateTime instance value plus the number of months that you specified in the days parameter. The month time unit must be specified in the existing DB2DateTime instance.