Change the date and time using CMD (Laptop/Desktop)

Change the date and time using CMD (Laptop/Desktop)

Changing the Time

  1. Enter the Time Command:
    • In the same Command Prompt window, type the following command and press Enter:
      # time
    • You will be prompted to enter the new time in the format HH:MM:SS (Hour:Minute).
    • For example, to set the time to 2:30 PM, you would type:  15:54:42.88

  2. Enter the Date Command:
  3. In the same Command Prompt window, type the following command and press Enter:
    #
    date
  4. You will be prompted to enter the new time in the format dd-mm-yyyy (Date-Month-Year)
  5. For example, to set the time to 2:30 PM, you would type:  14-06-2024

Setting Date and Time Directly

You can also set both date and time directly using specific commands without waiting for a prompt:

  1. Set Date Directly:

    • Type the following command and press Enter:
      date 06-14-2024
  2. Set Time Directly:

    • Type the following command and press Enter:
      time 14:30:00

    • Related Articles

    • Setup noVNC on Ubuntu 20.04/Gnome 3.36

      VNC (Virtual Network Computing) enables you to control your Linux installation from another computer on the same network, by viewing and interacting with the desktop from the other computer. To learn more about VNC, click here noVNC allows you to ...
    • How to KVM Server/Computer using Portable Laptop Console - IOGEAR Crash Cart Adapter

      System Requirements A laptop with a USB Type A Port Server/Computer with a VGA and USB Type A Port Note IOGEAR'S crash cart adapter only controls the target system through a direct cable connection. The crash cart adapter cannot be used to control ...
    • How to fix the camera issue in Laptop / Camera not working

      Root cause: Solution 1 Follow the below steps: Go to Settings -> Privacy -> Camera -> Enable - Allow apps to enable camera -> and enable access to required listed apps. check again if the camera is working or not else continue to the below steps. Go ...
    • Troubleshooting steps if the touchpad of the ASUS Laptop is not working.

      These are the steps we can follow if the touchpad is not working. Make sure the Touchpad hotkey is enabled. Check the hotkey location whether there is [Touchpad hotkey] on your keyboard, it is located on the F6 or F9 key usually. Type and search ...
    • Backup, Snapshot, and Restore Linux installations using Timeshift

      If you mess up (or are going to mess up) some config files or drivers, it is always good to have a fallback point. The de-facto standard for doing this on Linux is Timeshift. Timeshift for Linux is an application that provides functionality similar ...