[#BloombergLP-bdlt-Datetime-setYearDay] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/Datetime.adoc[Datetime]::setYearDay :relfileprefix: ../../../ :mrdocs: Set the "date" part of this object to have the value represented by the specified `year` and `dayOfYear` attribute values. The behavior is undefined unless `year` and `dayOfYear` represent a valid `Date` value (i.e., `true == Date::isValidYearDay(year, dayOfYear)`). Note that this method has no effect on the "time" part of this object. == Synopsis Declared in `<bdlt_datetime.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void setYearDay( int year, int dayOfYear); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#