[#BloombergLP-bdlt-Date-2constructor-049]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/Date.adoc[Date]::Date
:relfileprefix: ../../../
:mrdocs:

Create a `Date` object from the specified `year` and `dayOfYear`&period;

== Synopsis

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

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

== Description

Create a `Date` object having the value represented by the specified `year` and `dayOfYear`&period; The behavior is undefined unless `year` and `dayOfYear` represent a valid `Date` value (see `isValidYearDay`)&period;

== Parameters

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


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