[#BloombergLP-bdlt-Date-setYearMonthDay]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/Date.adoc[Date]::setYearMonthDay
:relfileprefix: ../../../
:mrdocs:

Set this date to the specified `year`, `month`, and `day`&period;

== Synopsis

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

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

== Description

Set this object to have the value represented by the specified `year`, `month`, and `day`&period; The behavior is undefined unless `year`, `month`, and `day` represent a valid `Date` value (see `isValidYearMonthDay`)&period;

== Parameters

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


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