Skip to content

DAY

System/Task Date

This system variable returns an 8-byte string containing this task’s current date, in the form MM/DD/YY. The date returned is today’s system date unless changed by the SETDAY directive.

DAY

If this task’s current date is set with the SETDAY directive, then the DAY system variable shows that date, even if system time lapses over midnight, until another SETDAY directive is executed or this task is RELEASEd and reSTARTed.

When this task is STARTed, DAY returns the system date and keeps current with the system date (updated day by day) unless this task’s current date is set with the SETDAY directive.

LET Z$ = DAY

On April 26, 1984, Z$=“04/26/84”.

SETDAY directive

From the Thoroughbred Basic Language Reference, Volume I: A–E, version 8.9.1. Open this page in the PDF