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

Return the day of year for the given year, month, and day&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
ymdToDayOfYear(
    int year,
    int month,
    int day);
----

== Description

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

== Return Value

day of year

== Parameters

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


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