Day

day returns the day number (1 to 31) from a date.

Syntax

 day(DATE_EXPR)

Examples

 # What is the day number today?CURRENT_DAY = day(date$)# What day was the "Bastille Day" ?FOURTEEN=day([14/07/1789])# What is the last day number of the current month (should return 28,29,30 or 31)LAST_DAY=day(eomonth(date$))

Description

day returns the day number of a valid date.

When the date is a null date ([0/0/0]), the function returns 0.

The type of result is Integer.

Associated errors

ErrorDescription
10The argument is not a date.
56The date is incorrect.

See also

month, year, week, month$, day$, gdat$, dayn, nday, date$, datesyst, Date.