How to Fix Power Query Date Conversion Errors in Excel
Question details
The user needs to fix date conversion errors that occur in Power Query when importing CSV files containing dates in the M/DD/YYYY format.

- Product
- Excel / Power Query
- Device & OS
- not provided
- Scenario
- Importing a CSV file with specific date formats into Excel using Power Query.
- Observed behavior
- Power Query automatically applies a 'Changed Type' step using the system's default locale, which causes dates formatted as M/DD/YYYY to be misread or cause conversion errors.
Before modifying your query, identify the exact date format used in your source CSV file (e.g., M/DD/YYYY or DD/MM/YYYY) so you can match it with the correct regional locale.
Fix Date Errors by Changing Locale in Power Query UI
The most reliable way to resolve locale-based date errors is to delete the automatic conversion step and manually enforce the correct locale using the Power Query menu.
Power Query tries to be helpful by automatically detecting data types when a file is loaded. However, it uses your computer's system locale to interpret values.
If your CSV contains US-formatted dates (M/DD/YYYY) but your computer is set to a European region (DD/MM/YYYY), the dates will be misread. Fixing this involves removing the automatic step and manually specifying the origin region.
In the Power Query Editor, look at the 'Applied Steps' pane on the right side. Click the 'X' icon next to the 'Changed Type' step to remove the automatic formatting.
Locate the column containing your date values and click on the column header to select it.
Right-click the selected column header, hover over 'Change Type', and click on 'Using Locale...' at the bottom of the submenu.
In the dialog box, set the Data Type to 'Date' or 'Date/Time'. Then, set the Locale to 'English (United States)' (or the region that matches your source data format). Click OK.

Fix Date Locale Using Advanced Editor (M Code)
If you are comfortable with M code, you can directly edit the query script to include the proper culture code parameter in your type conversion step.
Handle CSV Imports Easily with WPS Office
If complex Power Query errors and locale mismatch issues in Microsoft Excel are slowing you down, try WPS Office. WPS Spreadsheet offers intuitive, lightweight data import tools that seamlessly handle CSV files, format conversions, and text-to-columns without a steep learning curve.
- 1. Download and Install: Get WPS Office for free from the official website and install it on your device.
- 2. Open CSV Directly: Launch WPS Spreadsheet and open your CSV file directly without triggering complex backend queries.
- 3. Use Text to Columns: Highlight your date column, navigate to the Data tab, and use 'Text to Columns' to easily specify your date format (e.g., MDY) for instant error-free conversion.

Frequently Asked Questions
Why does Power Query automatically change data types?
By default, Power Query attempts to detect column types and formats upon import to save you time. However, it uses your operating system's default regional settings (locale), which can misinterpret dates if the imported CSV file was generated in a different region.
How do I stop Power Query from automatically changing column types?
You can disable this feature by going to File > Options and settings > Query Options. Under the 'Current Workbook' section, select 'Data Load' and uncheck the box for 'Automatically detect column types and headers for unstructured sources'.
Does changing the locale in Power Query affect my Windows system settings?
No, using 'Change Type Using Locale' inside Power Query only affects that specific data transformation step in your current Excel workbook. Your Windows regional and language settings remain completely unchanged.
What if my CSV dates are in DD/MM/YYYY format?
If your source CSV uses the DD/MM/YYYY format, you should select a locale that naturally uses this format during the 'Change Type Using Locale' step. Selecting 'English (United Kingdom)' is a standard way to parse DD/MM/YYYY dates successfully.




