Date constructor

Date(
  1. int year, [
  2. int month = 1,
  3. int day = 1
])

Calendar date of the year, month and day.

The month and day are normalized to be in the range 1 through 12 for months, and 1 through length-of-month for the day. Overflow or underflow is moved into the next larger unit, month or year.

The normalized date must be in the range -271821-04-20 through 275760-09-13 (100_000_000 days to either side of the Dart DateTime epoch of 1970-01-01).

Implementation

Date(int year, [int month = 1, int day = 1]) : this._(DateTime.utc(year, month, day));