$DAY
The $DAY function takes an input day number and returns a 3-byte string containing the name of the day, in ascending order beginning with Sunday. The return values are: SUN, MON, TUE, WED, THR, FRI, and SAT.
Syntax
$DAY(day-number)
Where:
day-number is the number for the day of the week
Usage
For example, if you enter the following command:
PRINT $DAY(5)
Model 204 displays:
THU
If CUSTOM=3
is specified, $DAY takes an input day number from 2 through 8 representing, in ascending order, Monday through Sunday. A string containing the full name of the day is returned. For example, if you enter the following command:
PRINT $DAY(5)
Model 204 displays:
FRIDAY
Note: Value 9 returns the string MON-FRI
.