How to Fix Excel Dates Showing as Number Codes in WPS Office
Question details
User needs to restore recognizable dates in a WPS Office Spreadsheet after saving because date cells display as numeric codes.

- Product
- WPS Office Spreadsheets
- Device & OS
- not provided
- Scenario
- The user entered and saved spreadsheet data, and dates now appear as numeric codes instead of recognizable dates.
- Observed behavior
- Affected cells display numeric codes after saving, even though the underlying date information may still be present.
Open your WPS Office spreadsheet and make the affected cells or column visible. Check whether the codes look like five-digit serial numbers such as 45292 or text strings, because that determines whether you only need formatting or also need to convert the values.
Apply a Date Format to Affected Cells
Use this first when the saved dates appear as numeric codes; it changes how the values are displayed without changing the underlying date.
Open the WPS Office spreadsheet, click the first cell that shows a numeric code, and drag to select the affected range, or click the column header to select the entire column.
Go to the Home tab, locate the Number group, and open the Number Format drop-down list.
Select Short Date or Long Date. For more control, click More Number Formats, select Date under Category, choose the date type you want, and click OK.

Convert Text Dates to Real Date Values
Use this when applying a date format does not change the codes because the cells contain text strings rather than true dates.
Restore Date Formatting in WPS Office Spreadsheets
Use WPS Office Spreadsheets to quickly reapply date formats, convert text dates, and preserve Excel-compatible date values when saving.
- 1. Open WPS Office Spreadsheets: Download and launch WPS Office, then open the affected .xlsx or .xls workbook in WPS Office Spreadsheets.
- 2. Select the affected cells: Click the first cell or column header containing the numeric codes, then drag or press Ctrl+Space to select the column.
- 3. Apply a date format from Home: On the Home tab, open the Number Format drop-down and choose Short Date, Long Date, or More Number Formats to pick a date type.
- 4. Convert text dates if needed: If the codes remain, insert a helper column and use =DATEVALUE(reference), then paste the results as values over the original cells.
- 5. Save the workbook: Press Ctrl+S to save the workbook; WPS preserves the date formatting and Excel compatibility.

Frequently Asked Questions
Why does WPS Office Spreadsheets show dates as number codes after saving?
Dates in spreadsheets are stored as serial numbers, so if the cell format is set to General, Number, or Text, the saved date can display as a numeric code. Select the cells and apply a date format from Home > Number Format to display them as dates.
How do I change a value like 45292 back into a date?
Select the affected cells, open Home > Number Format, and choose Short Date or Long Date. If you need a specific layout, right-click the cells, choose Format Cells > Date, select a type, and click OK.
What should I do if applying a date format does not fix the codes?
The values may be text instead of real dates. Check Format Cells to confirm Text, then use a helper column with =DATEVALUE(A2) and paste the results as values over the original cells.
Will WPS Office preserve my dates when saving as an Excel file?
Yes. WPS Office Spreadsheets supports Excel .xlsx and .xls formats and keeps date values and formatting when you save, as long as the cells contain real date values or a proper date format is applied.
Can I convert an entire column of text dates at once?
Yes. Select the column, go to Data > Text to Columns, choose Delimited or Fixed width depending on your data, and in step 3 select Date to convert the column to true date values.




