this

Constructs a Date from year-month-day, another Date, or a YearMonth or YearQuarter with optional period assumptions.

Examples

auto d1 = Date(YearMonth(2020, Month.may));
auto d2 = Date(YearMonth(2020, Month.may), AssumePeriod.end);