this

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

Examples

auto d1 = Date(YearQuarter(2020, Quarter.q2));
auto d2 = Date(YearQuarter(2020, Quarter.q2), AssumePeriod.end);