Workplace IT

How to change computer date using command prompt date command

Show or change the computer's date with the date command in Command Prompt, with its options explained.

· 1 min read
Illustration of a terminal window beside a calendar

Did you know that you could change your computer date using a simple Date command in command prompt?

Open Command Prompt as Administrator

Windows search for Command Prompt with Run as administrator

  1. Press the Windows Key
  2. Type cmd and press return
  3. Right Click the Command Prompt icon and select ‘ Run as Administrator’

Date command options

There aren’t many options for the Date command, it is generally intended to be a quick way to change your computers date.

Displays or sets the date.

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.

Type the command

In the command prompt window enter the below command and press return

date

You’ll then be given the option to type in a new date (should you wish) or just press return again to cancel

Command Prompt window after running the date command, showing the current date and a prompt for a new date

LewisA cheeky geek, who loves a good side project. A proven IT leader with multiple strings in his bow. Particularly interested in implementing technology to streamline workloads, always on the lookout to automate processes and save time.

Keep reading