How to set a computer's date and time

The following document contains the steps on how to change the computer's date and time in each of the major operating systems, as well as through the CMOS setup. To proceed, select your operating system from the list below and follow the instructions. It should be noted that if the time and date are resetting each time your computer is powered down, the CMOS battery is bad and needs to be replaced.

Tip: If you are using Windows on a virtual machine, the date and time on the host machine need to be changed in order to change the date and time on the virtual machine.

Windows 8 users
Windows Vista and 7 users
Windows 9x, NT, 2000, and XP users
Through the BIOS or CMOS setup
MS-DOS and Windows command line users
Linux and Unix users
Apple users
Android smartphone or tablet users
Apple iPad or iPhone users

Setting the date and time in Windows 8

  1. Press Windows key + D or navigate to the Windows desktop.
  2. In the lower right-hand corner of the screen, click or tap the notification area where you see the time and date.
  3. Select Change date and time settings... in the bottom of the window that appears (shown below).

    Time and Date
  4. In the new window, under the Date and Time tab, select Change date and time...
  5. Make your adjustments then click OK.

Adjusting the Time Zone

  1. From the Start Menu Charms, click Settings or press Windows key + I.
  2. In the Desktop settings, click More PC settings
  3. In PC settings, click General

Setting the date and time in Windows Vista and 7

  1. Press Windows key + D or navigate to the Windows desktop.
  2. In the lower right-hand corner of the screen, click or tap the notification area where you see the time and date.
  3. Select Change date and time settings... in the bottom of the window that appears (shown below).

    Time and Date
  4. In the new window, under the Date and Time tab, select Change date and time...
  5. Make your adjustments then click OK.

Setting the date and time in Microsoft Windows 95, 98, ME, NT 4, 2000, and XP

  1. Navigate to the Windows desktop.
  2. Right-click on the time in your Systray; usually located in bottom right-hand of your screen.
  3. Click the Adjust Date/Time menu item.
  4. This opens the Date/Time Properties window. In this window, you can adjust the time, date, and time zone.
  5. Once the proper date and time have been set, click Apply, and then Ok.

Tip: You may also double-click the time to open the Date/Time Properties window.

Tip: If you want to change how the computer handles daylight savings, click the Time Zone tab and check or uncheck the Automatically adjust clock for daylight saving changes option.

Adjusting the date and time in the BIOS or CMOS setup

  1. Enter the CMOS setup.
  2. In the system setup menu, locate the date and time.
  3. Using the arrow keys, navigate to the date or time, adjust them to your liking, and then Save and Exit.

Note: Steps may vary for your BIOS. Additional help, information, and simulations can be found on the BIOS help page.

Setting the date and time in MS-DOS and Windows command line

Setting the date through MS-DOS or the Windows command line is accomplished via use of the date command. See our date command page for further information.

Setting the time through MS-DOS or the Windows command line is accomplished via use of the time command. See our time command page for further information.

Setting the date in Linux and Unix

Use the date command to set the date and time. See our date command page for further information and examples.

Setting the date and time on the Apple operating system

  1. Open the Apple Menu and select System Preferences.
  2. Click Date & Time, and then click Date & Time again.
  3. Within the Date & Time window, set the date, time, time zone.

Setting the date and time on the Android operating system

  1. Touch the Settings icon
  2. Touch the Date & Time option
  3. In the Date & Time Settings menu, touch the Automatic option to turn off the Automatic date & time setting.
  4. Touch either the Set Date or Set Time option.
  5. Change the date or time accordingly and touch OK to save the change.

Setting the date and time on the Apple iPad or iPhone

  1. Touch the Settings icon
  2. Touch the General option
  3. Touch the Date & Time option
  4. In the Date & Time menu, turn off the Set Automatically option.
  5. Touch the date & time, which should now be visible at the bottom of the Date & Time menu.
  6. Adjust the date or time to your liking.

Additional information