QBasic 1.1: DATE$ Statement
Explanation
DATE$ Function and Statement
The DATE$ function returns the computer's current system date.
The DATE$ statement sets the current system date on your computer.
Worth knowing
Useful and cross-version information about the programming environments of QBasic, QuickBasic and Visual Basic for DOS.
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$