Microsoft DOS date command

Quick links

About chkdsk
Availability
Syntax
Examples

About date

The date command can be used to look at the current date of the computer as well as change the date to an alternate date.

Availability

The date command is an internal command and is available in

MS-DOS 5.0 and above
Windows 95
Windows 98
Windows ME
Windows NT
Windows 2000
Windows XP
Windows Vista
Windows 7
Windows 8

Syntax

Windows Vista and later syntax
Windows XP and earlier syntax

Windows Vista and later syntax

DATE [/T | date]

Type DATE without parameters to display the current date setting and a prompt for a new one. Press ENTER to keep the same date.

If Command Extensions are enabled the DATE command supports the /T switch which tells the command to just output the current date, without prompting for a new date.

Windows XP and earlier syntax

DATE [date]

Type DATE without parameters to display the current date setting and
a prompt for a new one. Press ENTER to keep the same date.

Examples

date

Display the current date and prompt for a new one. If no date is entered, the current date will be kept. If you are running a later version of Windows that has the /T option using this switch with the date command will not prompt you for a new date.

Additional information