Software-OK
≡... News | ... Home | ... FAQ | Impressum | Contact | Listed at | Thank you |

  
HOME ► Faq ► FAQ - Windows cmd.exe Command-Prompt ► ««« »»»

Date / time change command prompt, with examples, how to?


The solution is quite simple to use the cmd.exe command line to change the date or time!



Changing the date or time is sometimes quicker via the command line and makes more sense than to click through windows and buttons in Windows. With the Microsoft date and time tool it is possible, but especially those who like to work with the keyboard will probably find this function very useful. This is not only possible under Windows 11 / 10 / 8.1 / 7. No! It is also popular for administrators, especially on Windows Server 2022, 2019, 2016, ..... 

Please Open / Start the windows cmd.exe or start a program like the  ColorConsole.  
 

Content:
1.) ... command line to change the date! 
2.) ... command line to change the time! 
3.) ... what should I consider when changing the date, or the time!



See also: ► Start programs with different priority classes, how to?

1.) command line to change the date! 

In the Windows command prompt, you can change the date using the DATE command. 
 
If you start the DATE command without parameters, it will display the current date and ask for it
a new one. Press ENTER to keep the previous date. 

Example 1:

C:\Windows\system32>DATE
The current date is: Fri 06/22/2018
Enter the new date: (mm-dd-yy)

If the command extensions are enabled, the DATE command supports the
"/T" option. This option tells the command that only the current
Date should be output without asking for a date change. 

Example 2:
C:\Windows\system32>DATE /T
Fri 06/22/2018


However, you should start the command prompt with administrative rights  , otherwise the error message appears: 
A required privilege is not held by the client.

Example 3:


C:\Users\Neno\Desktop>DATE
The current date is: Fri 06/22/2018
Enter the new date: (mm-dd-yy) 11-11-18
A required privilege is not held by the client.



If executed correctly, you will not see any message about the date change!

2.) command line to change the time! 

Also with the command line (cmd.exe) it is possible to change the current Microsoft Windows PC time! The TIME command can be used for this.  
 
Similar to the DATE command, the current time, if you just want to see what the current time is, will be very useful. Press ENTER to keep the current time. 

Example 1:

C:\Users\Neno\Desktop>TIME
The current time is: 4:29:13.12
Enter the new time:

But this is possible with activated command extensions with the "/T" option direk. This option tells the command to display only the current time without asking for a new time input.

Example 2:

C:\Users\Neno\Desktop>TIME /T
The current time is: 4:31:23.41

By entering the new time 5:57 the time without feedback is changed, with wrong it comes to the error message:
"
The system cannot accept the time entered".

and again query: 
"Enter the new time"  
 
If you do not have a new time just press ENTER to keep the current time.  

Example 3:

C:\Users\Neno\Desktop>time 4:36

C:\Users\Neno\Desktop>time 4 37
The system cannot accept the time entered.
Enter the new time: 4:36

C:\Users\Neno\Desktop>



No admin error "A required privilege is not held by the client"

3.) what should I consider when changing the date, or the time!

For example, if you set the date to 5 years, the Chrome browser, Internet Explorer, Firefox, and programs that own the certificates may stop working because the certificate's https / ssl page has expired from the current date range Date setting on your PC, as it is for programs with certificates, here the timestamp of the certificate is no longer correct. 
 
Otherwise, quite handy to change and view the date and time via command line under Microsoft's Windows. The date change on the Windows PC with the CMD prompt, here as examples is explained briefly, and can be safely used on the following operating systems: Windows 11, 10 Pro, Enterprise, Home, Windows 8.1, Windows 8, Windows-Server 2019, 2016, 2012, Windows 7 Basic, Professional, Starter, Ultimate! 
 


FAQ 31: Updated on: 24 August 2021 09:51 Windows
Windows-Console

Move Files with Powershell and CMD (examples)!


The solution is quite easy to move with Powershell and / or cmd.exe files, or folders, here with examples Moving files sometimes makes more sense at the
Windows-Console

CMD commands to control power settings under Windows, with examples?


There are commands to control the power settings under Windows, it makes sense if you want to change them by batch file on Windows OS Here are a few examples,
Windows-Console

Using PowerShell and CMD to delete complete directories, with examples?


You can use PowerShell and / or cmd.exe to delete complete directories in one go with subdirectories on Windows 11, 10, Deleting of Directories Preface:
Windows-Console

Command line CMD background change color, but how, with example?


Also during the command input you can change the CMD background color by command and the text, here an example The color values ​​can be indicated by two
Windows-Console

Disable and enable SmartScreen via CMD BATCH command?


The solution is simple to disable and enable SmartScreen via CMD BATCH command and command prompt Smart Screen Internet Explorer disable C:\Windows\System32>REG
Windows-Console

How can I start the program at a certain time CMD, with examples?


In Windows you can start programs via AT at a certain time without additional software programs  Start the cmd.exe and use the command "AT" in the combination
Windows-Console

Copying files with COPY commands, cmd with examples?


In Windows you can copy via COPY command without file explorer, files and directories without additional software Start the cmd.exe and use the command

»»

  My question is not there in the FAQ
Asked questions on this answer:
  1. Change file creation date with powershell?
  2. Manually change Windows date via command line change?
  3. Clock and date windows customize via the cmd.exe?
  4. Cmd time command system server?
  5. Update Windows 11 and 10 time via script?
  6. Set time Windows 11 and 10 cmd?
  7. How can I change the clock in windows using the command line?
  8. Change Windows date manually change via command line?
  9. Change computer clock via cmd?
  10. Cmd command System date and time?
  11. time date windows change the fastest solution via command line?
  12. Change date on vserver via command line?
  13. Change time with command prompt?
  14. Set the time via the command line CMD prompt?
  15. Change computer clock manually via command line CMD prompt?
  16. Internet Explorer change correct system time via command line?
  17. Cmd change date time?
  18. Adjust time and date display in windows via cmd.exe?
  19. Windows Server 2008 cmd change time?
  20. Manually change computer clock via command line cmd prompt?
  21. Windows refresh time cmd?
  22. Internet Explorer correct system time via command line change?
  23. set the time input request?
  24. Set the time via command line CMD prompt?
  25. Set Windows time cmd?
  26. Run date and time as administrator?
  27. Change time via cmd so server time command in cmd?
  28. change time windows command line?
  29. Get time via command prompt?
  30. Change the time windows CMD prompt?
  31. Show current time Windows cmd?
  32. Windows command prompt date?
  33. Specify program starts via the command prompt?
  34. Server 2016, 2019 change date?
  35. Cmd command update time?
  36. Win 11 and 10 change time via command prompt?
  37. Windows syntax cmd time?
  38. Change clock windows CMD prompt?
  39. Windows 11 and 10 command line time?
  40. How can I set the date in windows by command line CMD prompt?
  41. Change time in all windows via Windows console?
  42. Update the Windows command prompt time?
  43. Time date windows change the fastest solution by command line?
  44. Change date with cmd command?
  45. How can I set the date in windows via the command line CMD prompt?
  46. How can I change the clock in windows by command line?
  47. Prompt Change time?
  48. Change the time in all windows via the Windows console?
  49. change date time windows 11 and 10 cmd?
  50. Date time automatically Windows 11 and 10 cmd?
  51. Date and time cmd?
  52. Windows 11 and 10 change time cmd?
  53. Dos change time?
  54. Change cmd format timestamp?
Keywords: windows, 11, 10, server, eleven, console, date, time, change, command, prompt, examples, solution, changing, quicker, Questions, Answers, Software




    

  + Freeware
  + Order on the PC
  + File management
  + Automation
  + Office Tools
  + PC testing tools
  + Decoration and fun
  + Desktop-Clocks

  + SoftwareOK Pages
  + Micro Staff
  + Freeware-1
  + Freeware-2
  + Freeware-3
  + FAQ
  + Downloads

  + Top
  + Desktop-OK
  + The Quad Explorer
  + Don't Sleep
  + Win-Scan-2-PDF
  + Quick-Text-Past
  + Print Folder Tree
  + Find Same Images
  + Experience-Index-OK
  + Font-View-OK


  + Freeware
  + GetPixelColor
  + StressMyPC
  + DesktopSnowOK
  + Delete.On.Reboot
  + IsMyTouchScreenOK
  + Print.Test.Page.OK
  + OpenCloseDriveEject
  + ColorConsole
  + IsMyLcdOK
  + PAD-s


Home | Thanks | Contact | Link me | FAQ | Windows 2021 | Windows 10 | English-AV | Impressum | Translate | PayPal | PAD-s

 © 2023 by Nenad Hrg softwareok.de • softwareok.com • softwareok.com • softwareok.eu
0.062


► Directly Open Desktop in Windows 8.1 and 8 at Login, skip start screen, how to? ◄

► How can I keep a backup of my notes? ◄

► Add my text plus what is in the clipboard, example! ◄

This website uses cookies to ensure you get the best experience on our website more Infos & Privacy Policy
....