$DAY

From m204wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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.