Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Change the Computer Time and Date Using the Command Prompt

Learn how to change the computer time and date using the command prompt with clear steps, practical context, and useful troubleshooting guidance.

Table of Contents

This updated guide examines How to Change the Computer Time and Date Using the Command Prompt and organizes the essential facts, background, and practical takeaways in clear American English.

Part 1of 2:

Disabling Automatic Time and Date

  1. How to Change the Computer Time and Date Using the Command Prompt — contextual image 1 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.
  2. How to Change the Computer Time and Date Using the Command Prompt — contextual image 2 Open StartHow to Change the Computer Time and Date Using the Command Prompt — contextual image 3. Click the Windows logo in the bottom-left corner of the screen.
  3. How to Change the Computer Time and Date Using the Command Prompt — contextual image 4 Open SettingsHow to Change the Computer Time and Date Using the Command Prompt — contextual image 5. Click the gear-shaped icon in the lower-left corner of the Start window. This will prompt the Settings window to appear.
  4. How to Change the Computer Time and Date Using the Command Prompt — contextual image 6 ClickTime & Language. This option is in the middle of the Settings window.
  5. How to Change the Computer Time and Date Using the Command Prompt — contextual image 7 ClickDate & time. It's a tab in the upper-left side of the window.
  6. How to Change the Computer Time and Date Using the Command Prompt — contextual image 8 Click the colored "Set time automatically" switchHow to Change the Computer Time and Date Using the Command Prompt — contextual image 9. The switch will turn greyHow to Change the Computer Time and Date Using the Command Prompt — contextual image 10, indicating that Windows will no longer attempt to reset the time and date automatically. At this point, you're free to change your computer's time and date in Command Prompt.

Part 2of 2:

Changing the Time and Date

  1. How to Change the Computer Time and Date Using the Command Prompt — contextual image 11 Open StartHow to Change the Computer Time and Date Using the Command Prompt — contextual image 12. Click the Windows logo in the bottom-left corner of the screen. The Start menu will pop up.
  2. How to Change the Computer Time and Date Using the Command Prompt — contextual image 13 Search for Command Prompt. Type incommand prompt, then wait for Command Prompt to appear at the top of the Start menu.
  3. How to Change the Computer Time and Date Using the Command Prompt — contextual image 14 Right-clickHow to Change the Computer Time and Date Using the Command Prompt — contextual image 15Command Prompt. It's at the top of the Start menu. A drop-down menu will appear.
    • 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.
  4. How to Change the Computer Time and Date Using the Command Prompt — contextual image 16 ClickRun as administrator. This option is in the drop-down menu.
    • You can't change your computer's time and date without administrator privileges.
  5. How to Change the Computer Time and Date Using the Command Prompt — contextual image 17 ClickYeswhen prompted. Doing so confirms that you want to open Command Prompt; you should see the Command Prompt window appear at this point.
  6. How to Change the Computer Time and Date Using the Command Prompt — contextual image 18 Change the time. The command for changing time in Command Prompt istime HH:MM:SS AM/PMwhere "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 intime 08:35:00 AMand pressing?Enterwould change your computer's time to 8:35 AM.
    • To change the time to 10:00 PM, you would type intime 10:00:00 PMand press?Enter.
    • If you're comfortable with 24-hour time, you can type in your preferred time (e.g.,14:00:00for 2:00 PM) and leave off the "AM" or "PM" tag.
  7. How to Change the Computer Time and Date Using the Command Prompt — contextual image 19 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 indateand 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 indateand press?Enter, then type in09-25-2018and press?Enter.
    • To adjust the date to read October 12th, 2018 on a European computer, you would type indateand press?Enter, then enter either12-10-2018or2018-10-12depending on your location.
  8. How to Change the Computer Time and Date Using the Command Prompt — contextual image 20 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.

FAQ

What is How to Change the Computer Time and Date Using the Command Prompt about?

It provides a structured overview of time, explains the main context, and highlights practical takeaways for readers.

Why does this topic matter?

Understanding the main concepts helps readers evaluate the issue, avoid common mistakes, and make better-informed decisions.

How should readers use this information?

Use the guidance as a practical starting point, confirm details that may have changed, and follow current product, safety, or security recommendations.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.