Date.fromYMD

Date fromYMD(long year, uint month, uint day) static @safe pure

Constructs from calendar parts, validated (the proleptic Gregorian calendar: month 1..12, day 1..the month's length with leap years).

Parameters

yearthe civil year (any value; year 0 is 1 BCE)
monththe month (1..12)
daythe day of month

Throws

DataFrameException on an out-of-range part.