The getdate procedure
Description
The getdate procedure retrieves the current system date.
Parameter
- 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.
- 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.
- 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.
- 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