[#BloombergLP-bdlt-DateUtil-lastDayInMonth] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/DateUtil.adoc[DateUtil]::lastDayInMonth :relfileprefix: ../../../ :mrdocs: Return the latest date in the specified `month` of the specified `year`. The behavior is undefined unless `1 <= year <= 9999` and `1 <= month <= 12`. == Synopsis Declared in `<bdlt_dateutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdlt/Date.adoc[Date] lastDayInMonth( int year, int month); ---- == Return Value last day of the month == Parameters [cols="1,4"] |=== | Name| Description | *year* | calendar year | *month* | month of year in `[1 .. 12]` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#