[#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); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#