Prevent Excel from Converting YYYY-MM-DD Text into Dates in WPS Office
Question details
The user needs to import or paste scraped YYYY-MM-DD values without Excel or WPS Spreadsheets automatically converting them into date values.

- Product
- WPS Office Spreadsheets and Microsoft Excel
- Device & OS
- not provided
- Scenario
- The user is importing or pasting scraped data that contains YYYY-MM-DD identifiers, such as case numbers or part numbers, and needs those values to remain text rather than becoming dates.
- Observed behavior
- The spreadsheet converts YYYY-MM-DD entries into date values, changing both the stored value and the display format.
Identify the destination column or table cells where the YYYY-MM-DD data will be pasted. If the data is already converted, have the original text source available so you can reimport it cleanly.
Format the Destination Cells as Text Before Pasting or Importing
Use this when you are about to paste scraped YYYY-MM-DD values and want to prevent automatic date detection from changing them.
Spreadsheet applications inspect input in General-format cells and may treat YYYY-MM-DD as a date. Formatting the target area as Text tells the application to keep the characters exactly as entered.
Open your workbook in WPS Office Spreadsheets or Excel and select the cells, table column, or range where the scraped data will go.
Right-click the selected range and choose Format Cells, or press Ctrl+1.
On the Number tab, select Text, click OK, then paste the YYYY-MM-DD values or import the data into the formatted range.

Fix Already-Converted Date Values with Apostrophes
Use this when YYYY-MM-DD values have already been converted to dates and you need to restore them as text without reimporting.
Use Import Tools or Power Query to Control Data Types
Use this for larger imports, CSV files, or scraped datasets where you want to specify that a column should remain text.
Prevent Date Conversion in WPS Spreadsheets
With WPS Office Spreadsheets, you can pre-format columns as Text, paste or import scraped YYYY-MM-DD data without automatic date conversion, and save the workbook in Microsoft-compatible .xlsx format.
- 1. Open WPS Office Spreadsheets: Launch WPS Office, click Spreadsheets, and open a blank workbook or the file you want to fix.
- 2. Format the destination as Text: Select the destination cells or column, right-click and choose Format Cells, then click the Number tab, select Text, and click OK.
- 3. Paste or import the YYYY-MM-DD data: Paste the scraped values into the preformatted range, or use Data > Import Data and set the column to Text before loading it.
- 4. Correct any existing date cells: For cells already shown as dates, edit the cell and type an apostrophe before the YYYY-MM-DD value, or reformat the column as Text and reimport the source.
- 5. Save as a Microsoft-compatible workbook: Click Menu > Save As and choose .xlsx format so the file remains compatible with Microsoft Excel.

Frequently Asked Questions
Why does Excel automatically convert 2024-01-15 into a date?
In General-format cells, Excel and WPS Spreadsheets scan input and treat recognizable date patterns such as YYYY-MM-DD as dates, storing them as date serial numbers instead of text.
How do I stop YYYY-MM-DD from becoming dates when I paste a large list?
Select the destination cells or entire column first, right-click and choose Format Cells > Text, then paste the values. The pre-applied Text format prevents automatic date conversion.
Can I fix converted date values without retyping everything?
For a few cells, double-click each cell and type an apostrophe before the value. For larger data, format the destination column as Text and reimport the original YYYY-MM-DD data.
Does WPS Spreadsheets keep .xlsx files compatible after I change cells to Text?
Yes. Save the file in .xlsx or .xls format and Microsoft Excel will open it normally, with the Text-formatted YYYY-MM-DD values preserved.




