date(CMD) 19 June 1992 date(CMD) Name date - display date or change date from a terminal or batch program Syntax date [mm-dd-yy] Description MS-DOS records the current date for each file you create or change; this date is listed next to the filename in the directory. Parameters 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 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 When you use an AUTOEXEC.BAT file, MS-DOS does not automatically display a prompt for a date when you start your system. To prompt users for the date every time the system is restarted, include the date command in AUTOEXEC.BAT. Changing the date format It is possible to change the mm-dd-yy format to display the date in other formats. You can add the country command to your CONFIG.SYS file to change the date format to the European standard (dd-mm-yy) or to the Scientific International (Metric) format (yy-mm-dd). Related command For information about changing the current time, see the time(CMD) com- mand.