$DAY

From m204wiki
Revision as of 13:18, 20 April 2013 by Alex (talk | contribs) (Automatically generated page update)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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)

The Model 204 displays:

'THU'

If CUSTOM=3 is selected, $DAY function 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)

The Model 204 displays:

'FRIDAY'

Also, 9 represents the string 'MON-FRI'.