setDate
setDate(day: Integer; month: Integer; year: Integer) updating;
The setDate method of the Date primitive type sets the receiver to a specific date, as shown in the following example.
testDateSet(); vars date : Date; begin date.setDate(31, 08, 1); write date; // Outputs 31 August 2001 end;
The parameters are the integer values for day, month, and year.
When you specify a value for the year parameter in the range 0 through 99, the year is assumed to be in the current century. If you want an absolute date in this range, use the Date::setDateYearAbsolute method.