[#BloombergLP-bdlt-Date-setYearDay] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/Date.adoc[Date]::setYearDay :relfileprefix: ../../../ :mrdocs: Set this date to the specified `year` and `dayOfYear`. == Synopsis Declared in `<bdlt_date.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void setYearDay( int year, int dayOfYear); ---- == Description Set this object to have the value represented by the specified `year` and `dayOfYear`. The behavior is undefined unless `year` and `dayOfYear` represent a valid `Date` value (see `isValidYearDay`). == 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]#