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
Parameters
Remarks
- You must separate values for MM, DD, and YY[YY] with periods (.), hyphens (-), or slash marks (/).
- Valid MM values are 1 through 12.
- Valid DD values are 1 through 31.
- Valid YY[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
08.03.00
08-03-00
08/03/00
To display the current system date, type:
date /t
Formatting legend
Format | Meaning |
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 |