DB2DateTime.DaysInMonth(Int32 year, Int32 month) method
Returns the number of days that are in the specified month of the year.
The DB2DateTime.DaysInMonth(Int32 year, Int32 month) 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 DaysInMonth (year As Int32, month As Int32) As Int32
[C#]
public static Int32 DaysInMonth (Int32 year, Int32 month)
[C++]
public:
static Int32 DaysInMonth (Int32 year, Int32 month)
[JScript]
public static function DaysInMonth (year : Int32, month : Int32) : Int32
Parameters
- year
- The year of the month that you are determining the days for.
- month
- The month that you are determining the days for.
Return value
The number of days in the specified month of the year.