[#BloombergLP-bdlt-PosixDateImpUtil-ydToMonth]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/PosixDateImpUtil.adoc[PosixDateImpUtil]::ydToMonth
:relfileprefix: ../../../
:mrdocs:

Return the month of the date value indicated by the specified `year` and `dayOfYear`&period; The behavior is undefined unless `true &equals;&equals; isValidYearDay(year, dayOfYear)`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
ydToMonth(
    int year,
    int dayOfYear);
----

== Return Value

month of year

== Parameters

[cols="1,4"]
|===
| Name| Description
| *year*
| calendar year
| *dayOfYear*
| day of year
|===


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