Date constructor

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

Constructs a Date instance, refer to DateTime to more information.

For example, to create a Date object:

final myFavouriteDay = Date(1994, 9, 24);

Implementation

Date(int year, int month, int day)
    : dateTime = DateTime.utc(year, month, day);