ZBasic System Library
Function returning UnsignedInteger
GetDayNumber(year, month, day)
The ordinal day number of the year (Jan 1 = 1).
The year (1999 to 2178).
The month (1 to 12).
The day (1 to 31).
This routine computes the day number corresponding to the day of the year specified by the parameters.
Day number 0 is January 1, 1999. The first form is used when you have a day number and year. (The
days in a year are numbered beginning with 1.) The second form is used when you have the year, month
Dim dayNum as UnsignedInteger
dayNum = GetDayNumber(59, 2005)
dayNum = GetDayNumber(2006, 3, 20)
This function is not available if the RTC is not enabled in your application. Also, it is not available in
BasicX compatibility mode.