DATE


Type: Internal (1.0 and later)

Syntax:

DATE
DATE mm-dd-yy

Purpose: Displays current date setting and provides a way to reset the date.

Discussion

You can enter the DATE command alone and the program will prompt you when to enter the date. You can also enter the date at the same time you enter the date command. Either way, you must enter the date in the following format:

The date you set will be used by DOS to Òdate stampÓ files that are created or modified. This date will be shown when you use the DIR command to display information about files.

You can specify the numbers to set the date at the same time you enter the DATE command or you can enter the command alone and the program will prompt you to enter the date.

For information on using the PROMPT command to display the date, refer to Chapter 6, Tips for Advanced Users.

Example When you enter

date

if the current date is set the program will display

Current date is Sat 06-11-1994
Enter new date (mm-dd-yy):
Press Enter to leave the date as it is, or type in the date using the format shown. Be sure to enter one or two numbers to indicate the month, then a hyphen, one or two numbers to indicate the day of the month, another hyphen, and one or two numbers to i ndicate the year. For example, to set the date on May 24, 1994, enter

5-24-94

Back to the Easy DOS Command Index