ZBasic System Library
GetDate(year, month, day)
GetDate(year, month, day, dayNum)
The variable in which to place the year value (1999-2177).
The variable in which to place the month value (1-12).
The variable in which to place the day value (1-31).
The day number to convert to year, month, day.
This routine decomposes a day number into the corresponding year, month and day components. The
month value of 1 corresponds to January while 12 corresponds to December. If the day number is
omitted, the value of Register.RTCDay is used.
Note that Register.RTCDay is initialized to zero on power-up or reset. This day number corresponds to
January 1, 1999.
This subroutine is not available if the RTC is not enabled in your application. Also, the second form of
this subroutine is not available in BasicX compatibility mode.