Windows 10 Command Line – How to Change Date and Time Using CMD

cmd.execommand linewindows 10

Recently I worked a lot with the command prompt. Now I want to know if it is possible to change the date and time of the system (Windows 10), only with the command prompt and how I can do it.

Best Answer

Open a command prompt window. I don't think it requires administrative privileges, but if it says Access Denied after you attempt to change the date/time, close the window and reopen with administrative privileges.

With the command prompt open, type date and press enter. It asks you to enter a new date. Do so and press enter again.

Now type time and press enter. It asks you to enter a new time.

If at either of these prompts, you press enter without entering a new date/time, the date/time will not be changed.

Related Question