Return the last day of the specified month in the specified year.
Declared in <bdlt_prolepticdateimputil.h>
static
int
lastDayOfMonth(
int year,
int month);
Return the last day of the specified month in the specified year. The behavior is undefined unless 1 <= year <= 9999 and 1 <= month <= 12. Note that the value returned will be in the range [28 .. 31].
last day of the month in [28 .. 31]
| Name | Description |
|---|---|
| year | calendar year in [1 .. 9999] |
| month | month of year in [1 .. 12] |