Date.this

this(int year, int month, int day) @safe pure

Throws

DateTimeException if the resulting Date would not be valid.

Parameters

yearYear of the Gregorian Calendar. Positive values are A.D. Non-positive values are B.C. with year 0 being the year prior to 1 A.D.
monthMonth of the year (January is 1).
dayDay of the month.
this(int day) @safe pure nothrow @nogc

Parameters

dayThe Xth day of the Gregorian Calendar that the constructed Date will be for.