DATE DATE
Name
date - enters or changes the date known to the system
Syntax
date [mm-dd-yy]
Description
You can change the date from your terminal or from a batch
file. (MS-DOS does not automatically display a prompt for
the date if you use an autoexec.bat file, so you may want to
include a date command in that file.) MS-DOS records this
date in the directory when you create or change a file.
If your system contains a CMOS clock, that clock date can
also be changed using date.
Remember to use only numbers when you type the date; allowed
numbers are:
mm = 1 - 12
dd = 1 - 31
yy = 80 - 79 or 1980 - 2079
The date, month, and year entries may be separated by
hyphens (-) or slashes (/). MS-DOS is programmed to change
months and years correctly, whether the month has 31, 30, or
28 days - or 29 days, since MS-DOS handles leap years, too.
You can change the mm-dd-yy format in which the date is
displayed and entered. The country command in the
config.sys file allows you to change the date format to the
European standard dd-mm-yy. For more information on the
config.sys file, see Appendix B, ``How to Configure Your
System.''
Examples
If you simply enter date, MS-DOS displays the following mes-
sage:
Current date is weekday mm-dd-yy
Enter new date (mm-dd-yy):_
If you do not want to change the date shown, press <Return>.
Or you can type a particular date after date, as in the fol-
lowing example:
date 3-9-86
In this case the ``Enter new date:'' prompt does not appear
after you press <Return>.
Notes
date is an internal command.
DATE (printed 8/16/89) DATE