Microsoft Office Online
Sign in to My Office Online (What's this?) | Sign in

Warning: You are viewing this page with an unsupported Web browser. This Web site works best with Microsoft Internet Explorer 6.0 or later, Firefox 1.5, or Netscape Navigator 8.0 or later. Learn more about supported browsers.

Insert the current date and time in a cell
 

Let's say you want to easily enter the current date and time while making a time log of activities or display the current date and time automatically in a cell every time formulas are recalculated. There are several ways to insert the current date and time in a cell.

What do you want to do?

Insert a static date or time

Insert a date or time whose value is updated



Insert a static date or time

Current date   Select a cell and press CTRL+;

Current time   Select a cell and press CTRL+SHIFT+;

Current date and time   Select a cell and press CTRL+; then SPACE then CTRL+SHIFT+;

Top of Page Top of Page


Insert a date or time whose value is updated

To do this task, use the TODAY and NOW functions.

Example

The example may be easier to understand if you copy it to a blank worksheet.

ShowHow to copy an example

  1. Create a blank workbook or worksheet.
  2. Select the example in the Help topic.

     Note   Do not select the row or column headers.

    Selecting an example from Help

    Selecting an example from Help
  3. Press CTRL+C.
  4. In the worksheet, select cell A1, and press CTRL+V.
  5. To switch between viewing the results and viewing the formulas that return the results, press CTRL+` (grave accent), or on the Formulas tab, in the Formula Auditing group, click the Show Formulas button.
 
1
2
3
A B
Formula Description (Result)
=TODAY() Current date (varies)
=NOW() Current date and time (varies)

 Note   The TODAY() and NOW() functions change only when the worksheet is calculated or when a macro that contains the function is run. They are not updated continuously. The date and time used are taken from the computer's system clock.

Function details

TODAY

NOW

Top of Page Top of Page

Related Office Online discussions

Read related questions and answers from other Microsoft Office customers.

© 2009 Microsoft Corporation. All rights reserved.