Dayn
Dayndayn
returns a number corresponding to the rank of the day in the week for the date given as an argument.
dayn(DATE_EXPRESSION)
DATE_EXPRESSION
is an expression that returns a date value. # Which day was the Bastille Day?TUESDAY=dayn([14/07/1789]) : # TUESDAY contains 2 because it was a Tuesday# Are we Saturday or Sunday todayIf find(dayn(date$),6,7)# We are Saturday or SundayElse# we are a week dayEndif
dayn
returns the rank of the day in a week from a valid date. The result is the following:
If Tuesday, the result is 2.
...
If Sunday, the result is 7.
The result type is Integer.
Error | Description |
---|---|
10 | The argument is not a date. |
day, month$, month, year, day$, nday, date$, Date.