day

day(): Integer;

The day method of the Date primitive type returns the day of the month (represented by the date value of the receiver) as an integer; for example, 21.

The following code fragment shows the use of the day method.

while day.day <= Calendar.DaysOfWeek do
    column := day.dayOfWeek;
    text   := day.dayName[1:Calendar.DayNameLength];
    day    := day + 1;
endwhile;
display := date.day.String & "/" & date.month.String & "/" & date.year.String[3:2];