Date constructor

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

Creates a Date object from day, month and year values. If the values are invalid, behaves like DateTime constructor, always converting to a valid date. I.e. Date(50, 40, 2000) will be converted to Date(20, 5, 2003). If you want to validate the input, use Date.isValid method.

Implementation

Date(final int day, final int month, final int year) : _date = DateTime(year, month, day);