QBasic 1.1: DATE$ Statement

Syntax

DATE$
DATE$ = stringexpression$

Description / Parameter(s)

stringexpression$ The date in one of the following forms: mm-dd-yy, mm-dd-yyyy, mm/dd/yy, mm/dd/yyyy.
The DATE$ function returns a string in the form mm-dd-yyyy.

Example

PRINT DATE$ DATE$ = "01-01-90" 'Note: The new system date remains in effect until ' you change it again. PRINT "Date set to "; DATE$