TODAY function

This article describes the formula syntax and usage of the TODAY function (function: A prewritten formula that takes a value or values, performs an operation, and returns a value or values. Use functions to simplify and shorten formulas on a worksheet, especially those that perform lengthy or complex calculations.) in Microsoft Office Excel.

Description

Returns the serial number of the current date. The serial number is the date-time code used by Excel for date and time calculations. If the cell format was General before the function was entered, Excel changes the cell format to Date. If you want to view the serial number, you must change the cell format to General or Number.

The TODAY function is useful when you need to have the current date displayed on a worksheet, regardless of when you open the workbook. It is also useful for calculating intervals. For example, if you know that someone was born in 1963, you might use the following formula to find that person's age as of this year's birthday:

=YEAR(TODAY())-1963

This formula uses the TODAY function as an argument for the YEAR function to obtain the current year, and then subtracts 1963, returning the person's age.

 Note   If the TODAY function does not update the date when you expect it to, you might need to change the settings that control when the workbook or worksheet recalculates. For more information, see the article Change formula recalculation, iteration, or precision.

Syntax

TODAY( )

The TODAY function syntax has no arguments (argument: A value that provides information to an action, an event, a method, a property, a function, or a procedure.).

 Note   Excel stores dates as sequential serial numbers so they can be used in calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008 is serial number 39448 because it is 39,447 days after January 1, 1900. Microsoft Excel for the Macintosh uses a different date system as its default.

For more information, see Change the date system, format, or two-digit year interpretation.

Example

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

ShowHow do I copy an example?

  1. Select the example in this article.

 Important   Do not select the row or column headers.

Selecting an example from Help

Selecting an example from Help
  1. Press CTRL+C.
  2. In Excel, create a blank workbook or worksheet.
  3. In the worksheet, select cell A1, and press CTRL+V.

 Important   For the example to work properly, you must paste it into cell A1 of the worksheet.

  1. 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.

After you copy the example to a blank worksheet, you can adapt it to suit your needs.


 
1
2


3



4
5


6
A B
Formula Description
=TODAY() Returns the current date.
=TODAY()+5 Returns the current date plus 5 days. For example, if the current date is 1/1/2008, this formula returns 1/6/2008.
=DATEVALUE("1/1/2030")-TODAY() Returns the number of days between the current date and 1/1/2030. Note that cell A4 must be formatted as General or Number for the result to display correctly.
=DAY(TODAY()) Returns the current day of the month (1 - 31).
=MONTH(TODAY()) Returns the current month of the year (1 - 12). For example, if the current month is May, this formula returns 5.
 
 
Applies to:
Excel 2007