auto d = Date(2020, Month.may, 31); auto yq = d.yearQuarter; assert(yq.year == 2020); assert(yq.quarter == Quarter.q2);
See Implementation