How to insert the current date in Excel – 4 examples

Press Ctrl + ; in a cell to insert the current date in Excel as a fixed value, or type =TODAY() for a date that updates every time the workbook recalculates.

This guide walks through four examples: the date shortcut, the TODAY function, a static date-and-time stamp, and a VBA macro, plus formats, Mac keys and fixes.

Method 1: Using keyboard shortcut (static date)

A static date is a snapshot. Excel writes today's date into the cell once, and the value never changes when the sheet is recalculated or reopened.

Use it for invoices, log entries and anything that must record the day the row was filled in.

  1. Select the empty cell that should hold the date.
  2. Press Ctrl + ; (Ctrl and the semicolon key) together.
  3. Press Enter to keep the date in the cell.
  4. Press Ctrl + 1 if you want a different look, then pick a format under Number > Date.

On a Mac, the date shortcut is the same Ctrl + ;. The time shortcut is where Windows and Mac differ, as with several other Excel keyboard shortcuts.

Static vs dynamic date in Excel

Your situation Use this example What ends up in the cell
Record the day a row was entered Method 1: Ctrl + ; A fixed date that never changes
Always show today, for ageing or countdowns Method 2: =TODAY() A formula that recalculates to the current date
Log the exact moment, date and time together Method 3: Ctrl + ;, Space, Ctrl + Shift + ; A fixed date and time
Stamp dates in bulk or with a button Method 4: a VBA macro A fixed date written by code

If a sheet will be printed or shared as a record, a dynamic date is usually the wrong choice: it changes the next time someone opens the file.

Understanding the basics of dates in Excel

Excel stores every date as a serial number so it can do arithmetic with it. The cell format only decides how that number looks.

Fact What it means for you
January 1, 1900 is serial number 1 by default Each later day adds 1, so a date is really a count of days
January 1, 2025 is serial number 45658 A date cell formatted as General shows a five-digit number like this
The part after the decimal point is the time 0.5 is 12:00 noon, so NOW returns a date plus a fraction
TODAY and NOW read the computer's system clock A wrong PC clock gives a wrong date in Excel
A General cell switches to Date when you enter TODAY Change it back to General or Number to see the serial number

Method 2: Using the TODAY() function (dynamic date)

TODAY takes no arguments and returns the current date. The result changes only when the worksheet is calculated or reopened, not continuously while the file sits open.

  1. Select the cell for the date.
  2. Type =TODAY() and press Enter.
  3. For the date and time instead, type =NOW() and press Enter.
  4. Press F9 to recalculate all open workbooks and refresh the result by hand.

TODAY also works inside other formulas. =TODAY()+5 returns the date five days from now, and =DAY(TODAY()) returns the day of the month from 1 to 31.

How to insert the current date in Excel – 4 examples
TODAY refreshes only when the sheet recalculates, so keep Calculation Options on Automatic or select Calculate Now. (Image: Microsoft)

Method 3: Using shortcut for entering the current date as static (Alt + D + D)

Alt + D + D is not an Excel date shortcut. Microsoft's list of Excel keyboard shortcuts assigns the current date to Ctrl + ; only, so pressing Alt + D + D will not put a date in the cell.

The static shortcut that goes further is the combined date-and-time stamp, which records the exact moment you pressed it.

  1. Select the cell for the timestamp.
  2. Press Ctrl + ; to enter the current date.
  3. Press Space once.
  4. Press Ctrl + Shift + ; to add the current time.
  5. Press Enter. The cell now holds a fixed date and time.

On a Mac, enter the date with Ctrl + ;, press Space, then press Command + ; for the time.

Method 4: Using VBA (Visual Basic for Applications) for custom date insertion

The VBA Date function returns the current system date. Writing it into a cell with a macro gives a static date that you can stamp with one shortcut or button, in any format you choose.

  1. Select File > Options > Customize Ribbon, tick Developer under Main Tabs and select OK.
  2. Press Alt + F11 to open the Visual Basic for Applications editor.
  3. Select Insert > Module.
  4. Paste this macro: Sub InsertToday() / ActiveCell.Value = Date / ActiveCell.NumberFormat = "mmmm d, yyyy" / End Sub, one statement per line.
  5. Close the editor, select a cell, press Alt + F8, choose InsertToday and select Run.
  6. Save the file as Excel Macro-Enabled Workbook (*.xlsm) so the code is kept.

The NumberFormat line uses the same format codes as the Format Cells dialog box, so dd/mm/yyyy or ddd, mmm d work too. A standard .xlsx file cannot store VBA code, which is why the macro disappears if you save as .xlsx.

Excel VBA insert current date macro in a new Visual Basic Editor module
After Alt + F11 and Insert > Module, the new Module1 appears under Modules and its code window takes the pasted macro. (Image: Microsoft)

Excel VBA timestamp when a cell changes

This variation of the macro writes the date automatically. It uses the Worksheet_Change event, which fires when a user edits a cell, not when formulas recalculate.

Right-click the sheet tab, select View Code and paste the code into that sheet's code window. It stamps column B whenever a single cell in column A changes.

Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Column <> 1 Or Target.Cells.Count > 1 Then Exit Sub
    Application.EnableEvents = False
    Target.Offset(0, 1).Value = Date
    Application.EnableEvents = True
End Sub

Target is the edited range. The first line ignores edits outside column A and multi-cell pastes. EnableEvents is switched off while the date is written so the macro does not trigger itself, then switched back on.

You should see: Type anything in A2 and press Enter: B2 shows today's date and keeps it, even on later days.

Excel shortcut for today's date on Windows, Mac and the web

Excel version Current date Current time Date and time together
Excel for Windows Ctrl + ; Ctrl + Shift + ; Ctrl + ;, Space, Ctrl + Shift + ;
Excel for Mac Ctrl + ; Command + ; Ctrl + ;, Space, Command + ;
Excel for the web Type the date, for example 2/2, then Home > Number Format > Short Date or Long Date Type the time, then Home > Number Format > Time Use =NOW() for a date and time that updates

=TODAY() and =NOW() work the same way in all three versions.

How to change the date format in Excel

A date inserted by any of the four examples can be reformatted without changing its value.

  1. Select the cells that hold the dates.
  2. Press Ctrl + 1 to open Format Cells.
  3. Select the Number tab, then Date in the Category list.
  4. Pick a format under Type and check the Sample box.
  5. For a format not in the list, select Custom and edit the code, for example dddd, mmmm d, yyyy.
  6. Select OK.

Press Ctrl + Shift + # to apply the default day-month-year date format in one step. Formats that start with an asterisk change with the regional date settings in Control Panel.

Change the date format in Excel with the Format Cells Date category
Press Ctrl + 1, pick Date under Category, then choose a Type; formats with an asterisk follow the system's regional settings. (Image: Microsoft)

Combine text and today's date in Excel with TEXT

Joining a label to a date with & shows the serial number unless you wrap the date in TEXT, which turns it into formatted text.

Formula Result
=TEXT(TODAY(),"MM/DD/YY") Today's date with a two-digit year
=TEXT(TODAY(),"DDDD") Today's full weekday name, such as Monday
="Report date: "&TEXT(TODAY(),"mmmm d, yyyy") A label followed by today's date written out
=A2&" "&TEXT(B2,"mm/dd/yy") Text from A2 joined to the date in B2

The result of TEXT is text, so it cannot be sorted or subtracted as a date. Keep the real date in its own cell when you need to calculate with it.

How to tell if an Excel date is static or a formula

  1. Select the cell with the date.
  2. Look at the formula bar: a static date shows the date itself, a dynamic one shows =TODAY() or =NOW().
  3. Press Ctrl + ` (grave accent) to show formulas in every cell at once.
  4. Press Ctrl + ` again to return to the normal view.

To freeze a dynamic date, select the cell, copy it with Ctrl + C, then select Home > Paste > Values. The formula is replaced by the date it currently shows.

Excel TODAY function not updating or date showing as a number

TODAY or NOW does not change to the new date

The workbook is set to manual calculation, so formulas wait for a recalculation.

  1. Select File > Options > Formulas.
  2. Under Calculation options, select Automatic.
  3. Select OK, then press F9 to recalculate now.

The cell shows ##### instead of the date

The column is too narrow for the date format.

  1. Double-click the right border of the column heading to fit the column to its contents.
  2. Or drag the right border wider, or choose a shorter date format.

The date appears as a number such as 45658

The cell is formatted as General or Number, so Excel shows the serial number.

  1. Select the cell and press Ctrl + 1.
  2. Select Number > Date, pick a format and select OK.

The date is wrong or a day off

TODAY, NOW and the Ctrl + ; shortcut take the date from the computer's system clock.

  1. Correct the date, time and time zone on the computer.
  2. Press F9 in Excel to recalculate TODAY and NOW.

The date macro is gone after reopening the file

The workbook was saved as .xlsx, which cannot store VBA code.

  1. Paste the macro back into a module.
  2. Select File > Save As and choose Excel Macro-Enabled Workbook (*.xlsm).
Excel TODAY function not updating: set Workbook Calculation to Automatic
Under File > Options > Formulas, a Manual setting stops TODAY and NOW from refreshing until you press F9. (Image: Microsoft)

Additional tips for managing dates in Excel

Task Formula or shortcut Note
Date a set number of days ahead =TODAY()+5 Five days from today; change 5 to any number
Days left until a deadline =DATEVALUE("1/1/2030")-TODAY() Format the result cell as General or Number
Current month as a number =MONTH(TODAY()) Returns 1 to 12
Age as of this year's birthday =YEAR(TODAY())-1963 Replace 1963 with the birth year
Date and time 12 hours ago =NOW()-0.5 Half a day is 0.5 in Excel's date serial
Apply the default date format Ctrl + Shift + # Day, month and year

Outside Excel, Notepad has its own time and date stamp shortcut for quick plain-text logs.

Excel current date FAQ

What is the shortcut to insert the current date in Excel?

Press Ctrl + ; (semicolon) in a cell to enter today's date as a fixed value. Press Ctrl + Shift + ; for the current time on Windows, or Command + ; on a Mac.

How do I insert a date in Excel that updates automatically?

Type =TODAY() in the cell and press Enter. The date refreshes whenever the workbook recalculates or is reopened. Use =NOW() if you also need the current time.

What is the difference between TODAY and NOW in Excel?

TODAY returns only the current date. NOW returns the current date and time as one serial number, with the time stored as the fraction after the decimal point. Neither updates continuously; both change on recalculation.

How do I stop TODAY from changing in Excel?

Copy the cell with Ctrl + C, then select Home, Paste, Values on the same cell. The formula is replaced by the date it showed at that moment, so it no longer changes. For new entries, use Ctrl + ; instead.

Does Alt + D + D insert the date in Excel?

No. Microsoft's Excel shortcut list has no Alt + D + D date command. Use Ctrl + ; for the date, and Ctrl + ;, Space, Ctrl + Shift + ; for a fixed date and time.

Why does my Excel date show as a number?

Excel stores dates as serial numbers, and a cell formatted as General or Number displays that serial instead of a date. Press Ctrl + 1, choose Date under Number and pick a format.

How do I add the current date in Excel with VBA?

Use the VBA Date function, for example ActiveCell.Value = Date inside a macro. Run it with Alt + F8, and save the workbook as .xlsm so the macro is kept.

How do I insert the current date in Excel for the web?

Type =TODAY() for a date that updates, or type the date yourself and select Home, Number Format, then Short Date or Long Date for a fixed value.

Philip Celasco

Philip is a Texas-based technology writer and IT administrator at Techdows.com with more than 10 years of experience creating practical content for everyday users and professionals. He specializes in web browsers, particularly Chromium-based platforms such as Google Chrome, Microsoft Edge, Brave, and Opera. Through his work as an IT administrator, Philip has hands-on experience managing devices, configuring browser policies, troubleshooting software and network issues, and helping people resolve problems that affect productivity and security. His articles are based on practical testing and real-world technical experience. He covers browser settings, extensions, performance problems, privacy controls, security features, and Windows troubleshooting. Outside work, Philip enjoys the quieter side of life in Texas and stepping away from the screen when he can. He has two kids, two cats and loves to play golf with his mother during the weekends.

Leave a Reply

Your email address will not be published. Required fields are marked *