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