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


► 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
....