date Function

Function:

Returns the date for a given day number.

Syntax:

date(daycount as word) as byte

Returns:

Date in the 1-31 range.

See Also:

year, month, weekday, daycount, hours, minutes, mincount


Part

Description

daycount

Day number. Base date for the day count is 1-JAN-2000 (this is day #0).


Examples

Tibbo BASIC
b = date(366) ' result will be 1 -- because day 366 is actually January 1st, 2001.

date Function

Examples