How to Convert Text Dates in CSV Files to Real Excel Dates
Question details
Users need to transform complex date-time strings from a CSV file into recognized date formats in a spreadsheet.

- Product
- Spreadsheet
- Device & OS
- not provided
- Scenario
- Importing a CSV file where date data appears as long text strings containing elements like the day of the week, timezone, and time (e.g., 'Mon Jan 01 00:00:00 EST 2024').
- Observed behavior
- The spreadsheet recognizes the imported dates as plain text instead of real serial dates, preventing the user from formatting, chronologically sorting, or filtering the data as dates.
Verify that your CSV file uses a consistent text structure and character spacing for all dates, as formulas and data queries rely on predictable patterns to extract the exact day, month, and year correctly.
Use Power Query to Import and Transform CSV Dates
Power Query provides a robust, visual way to handle complex date-time strings, locale settings, and irregular text formats during the import process without relying on manual formulas.
By utilizing the Get Data feature, you can intercept the CSV data before it loads into your spreadsheet and instruct the system exactly how to parse complex timezones and text dates.
Open a blank workbook, navigate to the Data tab on the top ribbon, and click 'Get Data' (or 'From Text/CSV'). Select your target CSV file.
In the preview window that appears, click 'Transform Data' to open the Power Query Editor instead of loading the data directly.
Right-click the column header containing the text dates, go to 'Change Type', and choose 'Date' or 'Date/Time'. If errors occur, use 'Split Column' > 'By Delimiter' (Space) to separate the timezone and text strings.
Once the column correctly displays dates, click 'Close & Load' in the upper-left corner to import the transformed real dates into your spreadsheet.

Extract Real Dates Using Formulas
If you have already imported the CSV data and the text date format has consistent character spacing, you can use specialized text extraction formulas to convert them.
Easily Convert and Manage CSV Data with WPS Spreadsheet
WPS Spreadsheet features powerful data import tools, a smart Text-to-Columns wizard, and a comprehensive library of formulas to seamlessly convert messy CSV text data into organized real dates.
- 1. Open CSV File: Launch WPS Spreadsheet, go to 'Menu' > 'Open', and select your CSV file.
- 2. Use Text to Columns: Select the column containing your text dates, navigate to the 'Data' tab, and click 'Text to Columns'.
- 3. Split the Data: Choose 'Delimited' and use Space as the delimiter to split the timezone, weekday, month, day, and year into separate columns.
- 4. Recombine with Date Formula: Use the standard DATE function in a new column to recombine the split year, month, and day data into perfectly formatted real dates.

Frequently Asked Questions
Why does my spreadsheet open CSV dates as plain text instead of real dates?
When the date format inside a CSV file contains non-standard text strings (like timezones or weekdays) or does not match your computer's regional date settings, the software fails to recognize it as a date and defaults to treating it as plain text to prevent data loss.
Can I use the Text to Columns feature instead of complex formulas?
Yes. The Text to Columns wizard found under the Data tab can split complex text strings by using delimiters like spaces or commas. This allows you to easily isolate the specific month, day, and year segments, which you can then format as dates.
How do I fix a #VALUE! error when using the date extraction formula?
A #VALUE! error typically indicates that the character positions defined in your formula do not perfectly align with the text string in the cell. Double-check your CSV data to ensure the character spacing is uniform, and adjust the number parameters in the MID and RIGHT functions to point exactly to the year, month, and day segments.




