How to Change Your Computer's Date and Time Using Command Prompt

Turn off automatic date and time

How to Change Your Computer's Date and Time Using Command Prompt Picture 1

Understand why this step is necessary. Although you can change the date and time on your computer using Command Prompt while automatic date and time are active, the computer will eventually reset the date and time to match the current date and time.

In some cases, the computer will automatically reset the time and date as soon as you close the Command Prompt.

How to Change Your Computer's Date and Time Using Command Prompt Picture 2

Open Start . Click the Windows logo in the lower left corner of the screen.

How to Change Your Computer's Date and Time Using Command Prompt Picture 3

Open Settings. Click the gear icon in the lower left corner of the Start window. The Settings window will appear.

How to Change Your Computer's Date and Time Using Command Prompt Picture 4

Click Time & Language . This option is in the middle of the Settings window.

How to Change Your Computer's Date and Time Using Command Prompt Picture 5

Click Date & time . This tab is located in the upper left of the window.

How to Change Your Computer's Date and Time Using Command Prompt Picture 6

Click the blue "Set time automatically" switch. The switch will turn gray, so Windows will no longer automatically set the date and time. At this point, you can freely change your computer's date and time in Command Prompt.

Change date and time

How to Change Your Computer's Date and Time Using Command Prompt Picture 7

Open Start . Click the Windows logo in the upper left corner of the screen. The Start menu will pop up.

How to Change Your Computer's Date and Time Using Command Prompt Picture 8

Find Command Prompt. Type command prompt, then wait for Command Prompt to appear at the top of the Start menu.

How to Change Your Computer's Date and Time Using Command Prompt Picture 9

Right-click Command Prompt at the top of the Start menu. A menu will drop down.

If the mouse you're using doesn't have a right mouse button, click the right side of the mouse or click with two fingers.

If your computer uses a trackpad instead of a mouse, press down on the trackpad with two fingers, or tap the bottom right of the trackpad.

How to Change Your Computer's Date and Time Using Command Prompt Picture 10

Click Run as administrator . This option is in the drop-down menu.

You must have administrator access to change the date and time on your computer.

How to Change Your Computer's Date and Time Using Command Prompt Picture 11

Click Yes when prompted to confirm that you want to open Command Prompt. The Command Prompt window will appear at this time.

How to Change Your Computer's Date and Time Using Command Prompt Picture 12

Change time. The command to change the time in Command Prompt is time HH:MM:SS AM/PM, where "HH:MM:SS" represents hours, minutes and seconds, and "AM/PM" is morning or evening time. To change the time on your computer, you need to enter the parameters into this command and then press ↵ Enter.

For example, if you type time 08:35:00 AMand press ↵ Enter, the time on your computer will change to 8:35 AM.

To change the time to 10:00 PM, enter time 10:00:00 PMand press ↵ Enter.

If you prefer to use 24-hour time, you can enter the desired hour (for example, 14:00:00in place of 2:00 PM), then enter the "AM" or "PM" tag.

How to Change Your Computer's Date and Time Using Command Prompt Picture 13

Change date. The date format you need to use in Command Prompt will depend on the country, but Command Prompt will display the format: type dateand press ↵ Enter, then enter the date you want to use in the format specified by Command Prompt ( for example: "dd-mm-yyyy" in Vietnam) and press ↵ Enter.

To change the date on your US computer to September 25, 2018, type dateand tap ↵ Enter, then type 09-25-2018and tap ↵ Enter.

If you want to adjust the date to October 12, 2018 on your computer in Vietnamese format, enter dateand press ↵ Enter, then enter 12-10-2018.

How to Change Your Computer's Date and Time Using Command Prompt Picture 14

Review the date and time on your computer. In the lower right corner of the screen, you'll see the updated date and time reflecting the current country's format.

If you use 24-hour time, the "AM" or "PM" tag will not appear here.

4 ★ | 2 Vote

May be interested

  • All Frequency Restart, Shutdown, Remote Off ... with Command PromptAll Frequency Restart, Shutdown, Remote Off ... with Command Prompt
    often users often turn off the computer, restart the computer ... using the shutdown options on the start menu. however, few of us know that using command prompt can also shutdown, restart the computer, schedule a computer shutdown or enable hibernation, ... and even if you have admin rights you can turn off other computers remotely.
  • 6 Cool Tricks You Can Do in Windows Command Prompt6 Cool Tricks You Can Do in Windows Command Prompt
    command prompt has a ton of capabilities, and many people doubt they know what a few lines of code can do. next time you're bored with your pc, try these cool command prompt tricks for yourself.
  • How to Customize the Font in Windows Command PromptHow to Customize the Font in Windows Command Prompt
    many people work regularly with the windows command prompt. one of the main problems users encounter, however, is the difficulty of achieving the same look every time one works with the command prompt interface. this article is intended to...
  • How to customize the Command Prompt on WindowsHow to customize the Command Prompt on Windows
    command prompt is a powerful tool that many people like to use. however, it looks a bit boring and unfriendly. fortunately, you can customize the command prompt according to your needs and preferences.
  • How to Change a Computer Password Using Command PromptHow to Change a Computer Password Using Command Prompt
    this wikihow teaches you how to change a pc's password from an administrator account by using command prompt. if you do not have administrator access to the computer you will not be able to change the password. for mac computers, you can...
  • How to change date and time manually in macOSHow to change date and time manually in macOS
    even after setting up macos, changing the date and time is a simple task. in fact, if you've selected the right time zone, macos will automatically display the exact date and time for your location.
  • How to Open the Command Prompt in WindowsHow to Open the Command Prompt in Windows
    this wikihow teaches you how to open the command prompt program in windows. there are several ways to do this, from simply searching in the start menu to using a run command. keep in mind that some computers, such as school computers, will...
  • How to Watch Star Wars on Command PromptHow to Watch Star Wars on Command Prompt
    this wikihow teaches you how to watch a version of 'star wars' rendered entirely in ascii characters (by folks with a lot of free time) using command prompt on windows or terminal on mac. open command prompt. you can open command prompt by...
  • How to open Command Prompt on Windows 10, 8, 7, Vista and XPHow to open Command Prompt on Windows 10, 8, 7, Vista and XP
    command prompt is one of the command line interface programs used to execute commands in the windows operating system. the article will guide you how to open command prompt on windows 10, 8, 7, vista and xp.
  • How to Make Command Prompt Appear at SchoolHow to Make Command Prompt Appear at School
    this wikihow teaches you how to access command prompt on a windows 10 school computer. although you may be able to open command prompt if only the file path to command prompt is blocked, there is no way to bypass an administrator lock on...