[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
DATE$                    Get or Set System Date

 s$ = DATE$                              ' Get the system date
 DATE$ = stringexpr                      ' Set the system date

    Gets or sets the current system date.

  stringexpr    A string expression in either of the following forms (but
                slash characters may be substituted for the hyphens):

                    "mm-dd-yy"
                    "mm-dd-yyyy"

   -------------------------------------------------------------------------

      Notes:    If DATE$ is assigned a value, the system date is set;
                otherwise, the system date is retrieved. The system date
                retrieved is formatted as:

                    "mm-dd-yyyy"

                If the year is expressed in two digits, instead of four,
                the twentieth century is assumed. If the month is
                expressed as a single digit, a leading zero is assumed.

                The year portion of the date must be in the range 1980 to
                2099.

                This statement resets the AT system date in nonvolatile
                memory when Turbo Basic is run under DOS 3.3.

See Also: TIME$
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson