BloombergLP::bdlt::Date::setYearMonthDay

Set this date to the specified year, month, and day.

Synopsis

Declared in <bdlt_date.h>

void
setYearMonthDay(
    int year,
    int month,
    int day);

Description

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

Parameters

NameDescription
yearyear of the date
monthmonth of the date
dayday of month of the date