Set the date from year/month/day if they form a valid date.
Declared in <bdlt_datetime.h>
int
setYearMonthDayIfValid(
int year,
int month,
int day);
Set this object to have the value represented by the specified year, month, and day if they comprise a valid Date value (see Date::isValidYearMonthDay). Return 0 on success, and a non-zero value (with no effect) otherwise.
0 on success, and a non-zero value otherwise
| Name | Description |
|---|---|
| year | year attribute |
| month | month attribute |
| day | day-of-month attribute |