

To set the time we will use a simple time HH:MM command.įor both date and time commands there are only two errorlevels, 0 (zero) if the command has been executed successfully and 1 (one) if the user has no administrative privileges to change these parameters.Īt this point we will go back to our timezone parameter. Take note that the default output from DATE /T is in the United States is "" but this is dependent on the country/locale (and obviously in which language you have installed Windows on your system. To set time and date, you can use the corresponding time and date commands at the command line. While, to every Windows system, to display the current date and time we could use the following commands: Date /t

By typing the following command will open the time and date setting window, even in a Server Core installation: control timedate.cpl Now that we have seen how to get and set time, date and time zone by using Windows GUI, it could be useful to know even how to get these info using Command Prompt commands. Set time, date, and time zone using Command Prompt In this last case, this procedure will open the old management window through which you can set the time, date and time zone for the system. From this step the process to change date, time and timezone is quite self-explanatory.Īnother way to achieve this task is to open the time and date settings window by clicking, on Windows Server systems, on the corresponding field in the Local Server section of the Server Manager control panel. In the Settings window, you can change the time, date, and timezones of each Windows Server. On modern Windows operating systems the process is very simple: Right-click the time field in the lower right corner and then click the Adjust date/time option, like in the following image: We can change the time zone of a computer in Date and Time properties window which can be opened by running timedate.cpl (Control Panel applet) from Run window. This setting allows us to set the time according to the geographical location the computer is located at. This setting is a "computer-wide" setting, not a per-user setting, so we will not be able to set a specific timezone for a specific user, on Windows systems. Timezone is a critical settings on client and server systems. To totally unlock this section you need to Log-in
