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