[#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`&period; The behavior is undefined unless `1 &lt;&equals; year &lt;&equals; 9999` and `1 &lt;&equals; month &lt;&equals; 12`&period;

== Synopsis

Declared in `&lt;bdlt&lowbar;dateutil&period;h&gt;`

[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 `&lsqb;1 &period;&period; 12&rsqb;`
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
