Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo Basic - <b>date$ get or set system date</b> http://www.X-Hacker.org [<<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$

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson