10

For testing purposes, occasionally, I need to change the date and time of the OS. I would really like to have a direct access to the window which allows me to do just that. (In windows 10, you have to do some extra steps, which I prefer to skip: click to clock (bottom right), select 'Date and time settings', select another option and then you get into a new window, where you have to click the 'Set the time and date', and only then you get the 'Date and Time' window - the red window)

Is there a way to open the red window (see the image bellow) by just double clicking a shortcut?

enter image description here

ZygD
  • 2,577
radui
  • 425

4 Answers4

18

You can create a shortcut pointing to timedate.cpl

enter image description here

ZygD
  • 2,577
6

You can run timedate.cpl. Or you can run a cmd and type 'time' or 'date' to set them.

Silbee
  • 1,549
  • 8
  • 12
3

Save this command in bat file

%windir%\System32\rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,,0

or this one save this command in bat file

%windir%\explorer.exe ms-settings:dateandtime
Dave M
  • 13,250
0

You may add a button in the Windows 11 taskbar to display the clock with seconds of timedate.cpl (below are the steps):
Clock icon taskbar Windows 11

Clock of timedate.cpl

Steps to add the clock on the taskbar:

In Windows Explorer, go to C:\Windows\System32

On the file "cmd.exe" > right click > Show more options > Pin to taskbar

In the taskbar you see this new icon:

Windows Command Processor

Right click on this icon, then Right click on "Windows Command Processor":

Display the properties of a taskbar icon

Left click on "Properties" then change the target "C:\Windows\System32\cmd.exe" to "C:\Windows\System32\cmd.exe /C "C:\windows\system32\timedate.cpl"":

Shortcut tab of Properties of Shortcut/.lnk file

Click on "Change Icon"

Look for icons in this file: %SystemRoot%\System32\SHELL32.dll

Select the clock icon:

Icons of %SystemRoot%\System32\SHELL32.dll

Go to the General tab and type "clock" instead of "Windows Command Processor" (this text appears as tooltip and as name of the link):

General tab of Properties of Shortcut/.lnk file

NB:

Reference to use cmd.exe to start an application (this solution also works for ".cpl" Control Panel files): How to pin either a Shortcut or a Batch file to the new Windows 7, 8 and 10 Taskbar and start menu? - Super User