Date
Displays the current system date setting. Used without parameters, date displays the current system date setting and prompts you to type a new date.
Syntax
date [mm-dd-yy] [/t]
Parameters
mm-dd-yy : Sets the date specified where mm is month, dd is day, and yy is year.
/t : Displays the current date without prompting you for a new date.
/? : Displays help at the command prompt.
Remarks
| • | You must separate values for mm, dd, and yy with periods (.), hyphens (-), or slash marks (/). |
| • | Valid mm values are 1 through 12. |
| • | Valid dd values are 1 through 31. |
| • | Valid yy values are 80 through 99, or 1980 through 2099. |
| • | Windows XP changes the month and year automatically, whether the month has 28, 29, 30, or 31 days. |
Examples
To change the date to August 3, 2000, type any of the following:
08.03.00
08-03-00
08/03/00
To display the current system date, type:
date /t
Formatting legend
Italic | Information that the user must supply |
Bold | Elements that the user must type exactly as shown |
Ellipsis (...) | Parameter that can be repeated several times in a command line |
Between brackets ([]) | Optional items |
Between braces ({}); choices separated by pipe (|). Example: {even|odd} | Set of choices from which the user must choose only one |
Courier font | Code or program output |
Time
Command-line reference A-Z