Return true if year/`month`/`day` is a valid date value.

Synopsis

Declared in <bdlt_prolepticdateimputil.h>

static
bool
isValidYearMonthDay(
    int year,
    int month,
    int day);

Description

Return true if the specified year, month, and day represents a valid date value, and false otherwise. Note that valid date values are (as fully defined in the component‐level documentation) in the range [0001/01/01 .. 9999/12/31].

Return Value

true if valid, and false otherwise

Parameters

Name

Description

year

calendar year

month

month of year

day

day of month

Created with MrDocs