Change the date and time using CMD (Laptop/Desktop)
Changing the Time
- Enter the Time Command:
- In the same Command Prompt window, type the following command and press
Enter
: - 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
- Enter the Date Command:
- In the same Command Prompt window, type the following command and press
Enter
:
# date - You will be prompted to enter the new time in the format dd-mm-yyyy (Date-Month-Year)
- 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:
Set Date Directly:
- Type the following command and press
Enter
:
Set Time Directly:
- Type the following command and press
Enter
: