Date.toYMD

void toYMD(out long year, out uint month, out uint day) const @safe pure nothrow

The civil parts (Howard Hinnant's civil-from-days; the same algorithm the UTC accessors use, correct for pre-epoch days).

Parameters

yearreceives the civil year
monthreceives the month (1..12)
dayreceives the day of month