How to set a computer's date and time

Below is a listing of different methods of how to change the computer's date and time in each of the major operating systems and through the CMOS setup.

Tip: If you are using Windows on a virtual machine (a virtual PC), you need to change the date and time on the host machine, which would automatically change the date and time on the virtual machine. The Apply button may be greyed out on the Date and Time settings window on a virtual machine.

Note: If the computer loses or resets the time and date after it has been off, the CMOS battery is bad and needs to be replaced.

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

The steps below only allow you to adjust your time zone. If you want to customize your time further, we suggest changing the steps from the Windows Desktop, which is the same steps contained in the Windows Vista and 7 steps below.

  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. Click on the Date and Time in the notification area. This is commonly the bottom right-hand corner of the screen (as shown below).
  2. In the Window that appears, click Change date and time settings

Windows 7 date and time settings

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

  1. Right-click on the time in your Systray. This is commonly in the bottom right-hand of your screen.
  2. Click the Adjust Date/Time menu item.
  3. This opens the Date/Time Properties window. In this window, you can adjust the time, date, and time zone. 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.
  4. Once the proper date and time has been set, click Apply, and then Ok.

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

Setting the date and time in the BIOS or CMOS setup

  1. Enter the CMOS setup.
  2. In the main or system setup screen, you should be able to see the date and time. Using your arrow keys, navigate to the date or time and change it. Highlight one of the date (month, day, year) or time (hour, minute, second) values and press your arrow keys or your page up or page down keys to change the date.

    These 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 can be done by using the date command. Additional information and help with this command can be found on the date command page.

To adjust the time while in MS-DOS use the time command. Additional information about this command can be found on the time command page.

Setting the date in Linux and Unix

Use the date command to set the date and time. See the date command page for further information and examples of how to do this.

Setting the date and time on the Apple operating system

  1. Open the Apple Menu
  2. Open the Control Panels
  3. Open Date & Time
  4. Within the Date & Time window, you can set the date, time, time zone, and change the network time server.

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 to turn off the Automatic date & time setting.
  5. Touch the date & time, which should now be visible at the bottom of the Date & Time menu.
  6. Change the date or time accordingly and it takes effect immediately.

Additional information