Contents | Prev | Next

7.4.21 The getdate procedure

Description

The getdate procedure retrieves the current system date.

Parameter

  1. The first parameter is a reference to a variable of integer type or word type which will store the year part of the current system date.
  2. The second parameter is a reference to a variable of integer type or word type which will store the month part (1 to 12) of the current system date.
  3. The third parameter is a reference to a variable of integer type or word type which will store the day part (1 to 21) of the current system date.
  4. The fourth parameter is a reference to a variable of integer type or word type which will store the day of the week part (0 to 6 counting from Sunday) of the current system date.

Example

Suppose the current system date is Wednesday September 30, 1998 then after:

    GetDate(year, month, day, day_of_week)

    year = 1998
    month = 9
    day = 30
    day_of_week = 3

Portability

Operating Systems: All
Standard Pascal: No

Contents | Prev | Next