DATE

Print Topic  Return to Overview  Previous Topic  Next Topic 
Purpose:Display and optionally change the system date.

 

Format:DATE [/T] [mm -dd -yy ]

 

mmThe month (1 - 12)
ddThe day (1 - 31)
yyThe year (80 - 99 or a 4- digit year)

 

/T (Display only)

 

See also:  TIME.

 

Usage:

 

If you simply type DATE without any parameters, you will see the current system date and time, and be prompted for a new date. Press Enter if you don't wish to change the date. If you type a new date, it will become the current system date, which is included in the directory entry for each file as it is created or altered:

 

date

Fri  Sep 1, 2006  9:30:06

Enter new date (mm-dd-yy):

 

You can also enter a new system date by typing the DATE command plus the new date on the command line:

 

date 11-16-2006

 

You can use hyphens, slashes, or periods to separate the month, day, and year entries. The year can be entered as a 2-digit or 4-digit value. Two-digit years between 80 and 99 are interpreted as 1980 - 1999; values between 00 and 79 are interpreted as 2000 - 2079.

 

DATE adjusts the format it expects depending on your country settings. When entering the date, use the correct format for the country setting currently in effect on your system.

 

You can also use the international date format yyyy-mm-dd.

 

Option:

 

/TDisplays the current date but does not prompt you for a new date. If a new date is specified in the same command as /T the new date will be ignored.

Topic "date.htm" last edited 4/21/2008. ©2008  JP Software, Inc.
Keywords: DATE,TIME,Date Formats