logo
search
Data Import & Export

How to Convert Text Dates in CSV Files to Real Excel Dates

Maira MehtabMaira Mehtab Sep 27, 2026 870 views

Question details

Users need to transform complex date-time strings from a CSV file into recognized date formats in a spreadsheet.

How to Convert Text Dates in CSV Files to Real Excel Dates
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.
Before you start

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.

Solution 1Recommended

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.

1
Launch Power Query

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.

2
Open Transform Data

In the preview window that appears, click 'Transform Data' to open the Power Query Editor instead of loading the data directly.

3
Format Date Column

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.

4
Load the Processed Data

Once the column correctly displays dates, click 'Close & Load' in the upper-left corner to import the transformed real dates into your spreadsheet.

Use Power Query to Import and Transform CSV Dates
Timezone Consideration: Double-check if all records in your dataset share the same timezone and time format. Power Query can easily strip out uniform text elements like 'EST' to reveal the core date.
Efficient Spreadsheet Solution

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. 1. Open CSV File: Launch WPS Spreadsheet, go to 'Menu' > 'Open', and select your CSV file.
  2. 2. Use Text to Columns: Select the column containing your text dates, navigate to the 'Data' tab, and click 'Text to Columns'.
  3. 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. 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.
Fully compatible with Microsoft Excel (.csv, .xlsx, .xls) file formats.Built-in Data Import wizard simplifies extracting and formatting messy CSV strings.Offers over 400 spreadsheet formulas, including text parsing and date extraction.Free, lightweight, and designed with a familiar interface for seamless workflow migration.
QA img-9

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.