How to Enter Date Format in Excel
In this article
To enter a date in Excel, type it in a format Excel recognizes—such as 5/10/2025, 10-May-2025, or 2025-05-10—and press Enter. Excel automatically converts it to a date serial number and displays it according to the cell's date format. If you need a specific display, apply a date format via the Number Format dropdown or the Format Cells dialog. This guide walks you through entering dates correctly, changing their appearance, and fixing common issues.
What You'll Need
- Microsoft Excel (desktop or web version; steps may vary slightly by version and platform)
- A worksheet where you can enter data
- Basic familiarity with selecting cells and using the ribbon or menu
Step-by-Step
- Select the cell or range where you want to enter dates. You can click a single cell or drag to select multiple cells. To apply a format to an entire column, click the column header.
- Type the date using a recognized format. Excel accepts many formats depending on your region settings. Common examples include:
- 5/10/2025 (month/day/year in the US)
- 10/5/2025 (day/month/year in many other regions)
- 10-May-2025
- 2025-05-10 (ISO format, always year-month-day)
- Press Enter or Tab to confirm. Excel will convert the entry to a date value. If the date is recognized, it will align to the right by default (unless the cell is formatted as text). If Excel does not recognize it, the entry remains as text and aligns left.
- Apply a specific date format (optional). To change how the date looks, select the cell(s), then go to the Home tab and click the Number Format dropdown (it may show "General" or "Date"). Choose a date format from the list. For more control, press Ctrl+1 (Cmd+1 on Mac) to open Format Cells, select the Number tab, choose Date, and pick a format. You can also create a custom format using codes like mm/dd/yyyy or dd-mmm-yy.
- Enter dates quickly with AutoFill. Type a date in a cell, then drag the fill handle (small square at the bottom-right corner of the cell) down or across to fill a series. Excel increments the date by one day by default. To fill weekdays only, right-click the fill handle after dragging and choose "Fill Weekdays." To fill months or years, use the Series dialog (Home > Fill > Series) and set the step value and date unit.
- Use the DATE function for dynamic dates. If you need to construct a date from separate year, month, and day values, use =DATE(year, month, day). For example, =DATE(2025,5,10) returns May 10, 2025. This is useful when combining cells or performing calculations.
- Check regional settings if dates are not recognized. Excel interprets dates based on your system's region settings. If you enter 10/5/2025 and Excel treats it as October 5 instead of May 10, your region likely uses month/day/year order. You can change the region in Windows Settings > Time & Language > Region (or Mac System Settings > General > Language & Region), but this affects other programs too. Alternatively, use an unambiguous format like 10-May-2025 or 2025-05-10.
Common Mistakes
- Entering dates as text. If a cell is formatted as Text before you type, Excel will not convert the entry to a date. To fix, format the cell as General or Date first, then re-enter the date. You can also use the DATEVALUE function to convert text to a date serial number.
- Using ambiguous formats. Formats like 05/10/2025 can be interpreted differently depending on region. Use a format with the month name (e.g., 10-May-2025) or ISO format (2025-05-10) to avoid confusion.
- Including extra spaces or characters. Leading or trailing spaces, or stray characters like periods, can cause Excel to treat the entry as text. Trim spaces and use only recognized separators.
- Assuming the display format is the underlying value. Changing the cell format only changes how the date appears; the underlying serial number remains the same. This is fine for calculations, but be aware when copying or comparing dates.
- Forgetting that dates are numbers. Excel stores dates as sequential serial numbers starting from January 1, 1900 (or 1904 on Mac by default). This means you can perform arithmetic on dates, but also that a date like 5/10/2025 is actually 45787. If you see a number instead of a date, the cell is likely formatted as General or Number—just reapply a date format.
Tips
- Use the shortcut Ctrl+; (semicolon) to insert today's date. This enters the current date as a static value. On Mac, use Control+; (semicolon).
- Use =TODAY() for a dynamic date that updates. This function returns the current date and refreshes when the workbook is recalculated.
- Customize date formats. In Format Cells > Number > Custom, you can create formats like dddd, mmmm d, yyyy to display "Saturday, May 10, 2025". Use the codes: d (day), m (month), y (year).
- Be consistent within a column. Mixing date formats in a column can make sorting and filtering unreliable. Apply the same format to all cells in the column.
- Use Text to Columns to convert text dates. If you have a column of dates stored as text, select the column, go to Data > Text to Columns, and follow the wizard to specify the date format. This converts them to real dates.
Troubleshooting
- Excel won't recognize my date. Check that the cell is not formatted as Text. Also ensure the date uses a separator your region recognizes. Try typing the date with the month name (e.g., 10-May-2025) or use the DATE function.
- The date shows as a number. The cell is formatted as General or Number. Select the cell, then apply a date format from the Number Format dropdown or Format Cells dialog.
- Dates are left-aligned and not calculating. This indicates they are stored as text. Use the DATEVALUE function or Text to Columns to convert them.
- AutoFill is not incrementing dates. Ensure the cell contains a real date, not text. Also check that the fill handle is enabled: File > Options > Advanced > Enable fill handle and cell drag-and-drop.
- Regional settings cause wrong interpretation. If you frequently work with international dates, consider using ISO format (yyyy-mm-dd) or changing your system region. For a single workbook, you can use a custom format to display dates unambiguously.
Frequently Asked Questions
How do I enter a date and time in one cell?
Type the date, a space, and the time (e.g., 5/10/2025 14:30). Excel stores it as a serial number with a decimal for the time. Apply a format that includes both date and time via Format Cells > Number > Custom.
Why does Excel change my date to a different format after I press Enter?
Excel applies the default date format from your system settings or the cell's existing format. To keep a specific look, apply a custom format before or after entering the date.
Can I enter a date without separators, like 20250510?
Excel may interpret 20250510 as a number, not a date. Use separators (slash, hyphen, or space) to ensure it's recognized as a date.
How do I make Excel accept dates in dd/mm/yyyy format?
Change your system region to one that uses day/month/year order, or enter dates with the month name (e.g., 10-May-2025). You can also use the DATE function to construct dates unambiguously.
What is the earliest date Excel can handle?
Excel for Windows supports dates from January 1, 1900, onward. Excel for Mac historically used January 1, 1904, as the starting point, but modern versions align with Windows. Dates before 1900 are treated as text.
How do I stop Excel from auto-formatting dates?
Pre-format the cells as Text before entering dates, or type an apostrophe (') before the date to force text entry. Note that text dates won't work in calculations.