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

  • 2
    if you just want to set the date time then there's no need to open that dialog. You can do that entirely from the command line
    – phuclv
    Apr 13, 2021 at 10:59

3 Answers 3


You can create a shortcut pointing to timedate.cpl

enter image description here

  • thank you for your answer (it works) and for your recommendation.
    – radui
    Apr 12, 2021 at 10:03

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


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
  • thank you for your answer. (1) regarding the first solution, could detail what ",,0" does? (2) the second command does not open the (red) window I wanted (I'm using win10 ver1909 build18363.1379)
    – radui
    Apr 12, 2021 at 10:15
  • 1
    The ,,0 means it passes 0 as the second argument to timedate.cpl
    – Silbee
    Apr 12, 2021 at 10:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.