Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All


Updated: January 21, 2005

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2


Displays the current system date setting. Used without parameters, date displays the current system date setting and prompts you to type a new date.


date [MM-DD-YY[YY]] [/t]

MM - DD - YY[YY]
Sets the date specified where MM is month, DD is day, and YY[YY] is year.

Displays the current date without prompting you for a new date.

Displays help at the command prompt.

  • 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.


To change the date to August 3, 2000, type any of the following:




To display the current system date, type:

date /t

Formatting legend


Format Meaning


Information that the user must supply


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

See Also

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft