Changing System Date and Time

The system date and time are crucial for scheduling tasks, file management, and internet connectivity. Below are instructions for Windows, macOS, and Linux on how to change the system date and time.


1. Changing Date & Time in Windows 🖥️

🔹 Automatic Date & Time (Recommended)

  • Open Settings (Win + I) → Time & Language → Date & Time.
  • Toggle "Set time automatically" and "Set time zone automatically" to ON.

🔹 Manual Date & Time Change

  • Turn off "Set time automatically".
  • Click Change under "Set the date and time manually".
  • Select the correct date and time, then click Change.

🔹 Changing Time Zone

  • In Date & Time settings, scroll to Time zone.
  • Select your correct time zone from the dropdown list.

🔹 Using Command Prompt (CMD)

📌 To Change Date:

  • Open CMD as Administrator (Win + R, type cmd, press Ctrl + Shift + Enter).
  • Type: date 02-19-2025 (format: MM-DD-YYYY)

📌 To Change Time:

  • Type: time 14:30:00 (format: HH:MM:SS, 24-hour format)

 2. Changing Date & Time in Linux (Ubuntu & Other Distros) 🐧

🔹 GUI Method (Easy Way)

  • Open Settings → Date & Time.
  • Turn OFF "Set time automatically" to enable manual adjustment.
  • Click Date and Time fields to modify them.

🔹 CLI Method (Terminal)

To Change Date:

  • Open Terminal (Ctrl + Alt + T).
  • Use  : sudo date --set="19 Feb 2025 14:30:00"