------------------------- MS-DOS v6.22 Help: DATE --------------------------
<Notes>                                                            <Index>
----------------------------------------------------------------------------

                                    DATE

Displays the date and prompts you to change the date if necessary.

MS-DOS records the current date for each file you create or change; this
date is listed next to the filename in the directory.

Syntax

    DATE [mm-dd-yy]

Parameter

mm-dd-yy
    Sets the date you specify. Values for day, month, and year must be
    separated by periods (.), hyphens (-), or slash marks (/). The date
    format depends on the COUNTRY setting you are using in your CONFIG.SYS
    file. The following list shows the valid values for the month, day, and
    year portions of the mm-dd-yy parameter.

    mm    1 through 12

    dd    1 through 31

    yy    80 through 99    or    1980 through 2099

Related Command

For information about changing the current time, see the <TIME> command.

                                      ***

<Syntax>
----------------------------------------------------------------------------

                                DATE--Notes

Adjusting for days in a month

MS-DOS is programmed to change months and years correctly, whether the month
has 28, 29, 30, or 31 days.

Using the DATE command in your AUTOEXEC.BAT file

To prompt users for the date every time the computer is restarted, include
the DATE command in your AUTOEXEC.BAT file.

Changing the date format

To display the date in other format besides mm-dd-yy, add the COUNTRY
command to your CONFIG.SYS file. You can change the date format to the
European standard format (dd-mm-yy) or to the Scientific International
(Metric) format (yy-mm-dd).

                                      ***

<Syntax> <Notes>
----------------------------------------------------------------------------
----------------------------------------------------------------------------
<Top of page>
Last update: December 07, 2002 14:45 by
Content © 1997 Microsoft Corporation
All else © 2000-2005
Counter