How to Change the Computer Time and Date Using the Command Prompt
Part 1 of 2:
Disabling Automatic Time and Date
- Understand why this is necessary. While you can change your computer's time and date with Command Prompt while your computer's automatic time and date is active, your computer will eventually reset its time and date to match the current one.
- In some cases, your computer will reset the time and date as soon as you close Command Prompt.
- Open Start
- Open Settings
- Click Time & Language. This option is in the middle of the Settings window.
- Click Date & time. It's a tab in the upper-left side of the window.
- Click the colored "Set time automatically" switch
Part 2 of 2:
Changing the Time and Date
- Open Start
- Search for Command Prompt. Type in command prompt, then wait for Command Prompt to appear at the top of the Start menu.
- Right-click
- If your mouse doesn't have a right-click button, click the right side of the mouse, or use two fingers to click the mouse.
- If your computer uses a trackpad instead of a mouse, use two fingers to tap the trackpad or press the bottom-right side of the trackpad.
- Click Run as administrator. This option is in the drop-down menu.
- You can't change your computer's time and date without administrator privileges.
- Click Yes when prompted. Doing so confirms that you want to open Command Prompt; you should see the Command Prompt window appear at this point.
- Change the time. The command for changing time in Command Prompt is time HH:MM:SS AM/PM where "HH:MM:SS" refers to the hour, minute, and second, and "AM/PM" refers to whether it's morning or afternoon. To change your computer's time, type in this command with your preferred time indicated, then press ↵ Enter.
- For example, typing in time 08:35:00 AM and pressing ↵ Enter would change your computer's time to 8:35 AM.
- To change the time to 10:00 PM, you would type in time 10:00:00 PM and press ↵ Enter.
- If you're comfortable with 24-hour time, you can type in your preferred time (e.g., 14:00:00 for 2:00 PM) and leave off the "AM" or "PM" tag.
- Change the date. The date format you'll use in Command Prompt depends on your country, but Command Prompt will tell you which format to use: type in date and press ↵ Enter, then type in the date you want to use in whichever format is specified by Command Prompt (e.g., "mm-dd-yyyy" in the United States) and press ↵ Enter.
- To change a United States computer's date to September 25th, 2018, you would type in date and press ↵ Enter, then type in 09-25-2018 and press ↵ Enter.
- To adjust the date to read October 12th, 2018 on a European computer, you would type in date and press ↵ Enter, then enter either 12-10-2018 or 2018-10-12 depending on your location.
- Review your computer's time and date. In the bottom-right corner of the screen, you should see both your updated time and your updated date reflected in your region's format.
- If you use 24-hour time, you won't see "AM" or "PM" listed here.
5 ★ | 1 Vote
You should read it
- How to Customize the Font in Windows Command Prompt
- Add Command Prompt to Power User Menu on Windows 10
- How to Watch Star Wars on Command Prompt
- How to open Command Prompt on Windows 10, 8, 7, Vista and XP
- How to Make Command Prompt Appear at School
- 6 Best Command Prompt Alternatives for Windows
- How to use Xcopy command in Command Prompt
- How to display the date and time in Linux Terminal
May be interested
- How to Delete a File Using Command Promptthis wikihow teaches you how to delete a file from your pc's desktop by using a command in command prompt. locate your file. if you know where the file is, you can navigate to it by simply opening the appropriate folder. for example, if...
- How to Find All Commands of CMD in Your Computerhave you forgotten a certain command that you need to use in the command prompt? you can quickly list most commands, allowing you to search the list and find the one you need. you can also use the same function to get additional help for...
- How to Open the Command Prompt in Windowsthis 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 Promptthis 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 Run a Batch File from the Command Line on Windowsthis wikihow teaches you how to run a batch file (.bat) from the windows command line. you can run the program from the 'run' dialog or by typing commands into a terminal window. press . this opens the run dialog.
- How to Run a Program on Command Promptthis wikihow teaches you how to start a program on your windows computer from within the command prompt app. you can only run programs that are installed in windows-created folders (e.g., the desktop), though you can add a program's folder...