120 of 323
ZBasic System Library 110 ZX Microcontroller Family GetDayNumber Type Function returning UnsignedInteger Invocation GetDayNumber(dayOfYear, year) GetDayNumber(year, month, day) Parameter Method Type Description dayofYear ByVal integral The ordinal day number of the year (Jan 1 = 1). year ByVal integral The year (1999 to 2178). month ByVal integral The month (1 to 12). day ByVal integral The day (1 to 31). Discussion 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 and day. Examples Dim dayNum as UnsignedInteger dayNum = GetDayNumber(59, 2005) dayNum = GetDayNumber(2006, 3, 20) Compatibility This function is not available in BasicX compatibility mode. See Also GetDate, GetDayOfWeek, GetDayOfYear, PutDate