How to Enter and Format Dates Correctly in Excel
Question details
The user wants to correctly input dates into Excel so they are recognized as valid date values rather than unexpected serial numbers or plain text.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Entering numeric values without standard date separators (such as typing 122524) while expecting the cell to format it as mm/dd/yyyy.
- Observed behavior
- Excel interprets numbers entered without separators as large serial numbers, converting them into distant, unintended future dates instead of the desired date.
Verify that your computer's regional settings match your intended date format (e.g., Month/Day/Year vs. Day/Month/Year) and ensure your cells are set to the 'General' format before typing.
Use Proper Date Separators When Entering Values
The most reliable way to enter dates in Excel is by manually including standard separators like slashes or hyphens.
Excel inherently stores dates as sequential serial numbers starting from January 1, 1900. Because of this, typing a continuous string of numbers like '122524' prompts Excel to count 122,524 days from 1900, resulting in a date far into the future (the year 2236).
By inserting common separators, Excel's AutoFormat immediately recognizes your input as a date and converts it into the correct underlying serial number.
Click on the cell where you want to input a date.
Enter the date using forward slashes (/) or hyphens (-) as separators. For example, type '12/25/2024' or '25-Dec-2024'.
Press Enter. Excel will automatically apply your system's default date formatting to the cell and store the correct date value.

Apply a Custom Number Format for Display Purposes
If you only need the numbers to look like dates visually and do not require date calculations, you can apply a custom cell format.
Format Dates Flawlessly with WPS Spreadsheet
WPS Office Spreadsheet provides an intuitive interface for data entry, making it easy to correctly format, convert, and calculate dates just like Microsoft Excel, completely free.
- 1. Open your file: Launch WPS Spreadsheet and open your workbook.
- 2. Highlight date cells: Select the range of cells containing the dates you want to format.
- 3. Access Formatting: Press 'Ctrl + 1' or right-click and select 'Format Cells'.
- 4. Choose Date format: Select 'Date' from the category list, pick your preferred layout, and click 'OK' to apply.

Frequently Asked Questions
Why does Excel change 122524 to a date in the year 2236?
Excel stores dates as serial numbers counting upward starting from January 1, 1900 (which equals 1). The number 122,524 represents the 122,524th day after that starting point, which mathematically lands in the year 2236.
How can I convert continuous numbers without separators into real dates?
You can use the 'Text to Columns' feature. Select the column, go to the Data tab, click 'Text to Columns', choose 'Delimited', and click Next until Step 3. Under 'Column data format', choose 'Date', set the layout (e.g., MDY), and click Finish.
Can I use VBA to automatically insert date separators while typing?
Yes, you can write an Event Macro in VBA using the Worksheet_Change event. This macro can intercept specific numerical entries (like 122524), parse the digits, and automatically overwrite the cell with a properly formatted standard date like 12/25/2024.




