How to Fix Power Query Changing UK Dates to US Format
Question details
The user needs to prevent Power Query from misinterpreting UK date formats as US dates or generating conversion errors during data transformation.

- Product
- Microsoft Excel / Power Query
- Device & OS
- Windows
- Scenario
- Loading and transforming dataset columns containing UK-formatted dates (DD/MM/YYYY) into Power Query for analysis.
- Observed behavior
- Ambiguous dates like 11-05-2024 are incorrectly flipped to US format (November 5th instead of May 11th), while dates like 21-05-2024 produce errors because there is no 21st month in the US calendar.
Verify the original format of your source data (such as a CSV or raw Excel file) to confirm whether the dates are stored as raw text or actual date values before importing them into Power Query.
Adjust Power Query Regional Settings to Match Source Data
Set the Power Query workbook locale to English (United Kingdom) so it correctly parses DD/MM/YYYY formats.
By default, Power Query may inherit the system's regional settings or default to a US locale. Adjusting the locale for the current workbook ensures all data imports follow the correct UK date structure.
In Excel, go to the 'Data' tab on the ribbon, click 'Get Data', and select 'Query Options'.
Under the 'Current Workbook' section in the left pane of the Query Options window, select 'Regional Settings'.
Under the 'Locale' dropdown menu, choose a locale that matches your source data format, such as 'English (United Kingdom)'.
Click 'OK', then return to the Power Query Editor. Convert your problematic column to the 'Date' data type, and the dates will parse without errors.

Change Date Type Using a Specific Locale
Apply UK locale settings specifically to the problematic date column without changing the entire workbook's settings.
Verify Windows Regional Settings
Ensure your operating system's date settings align with your expected output format, as Excel often inherits these defaults.
Handle Your Data Effectively with WPS Office
If you frequently struggle with complex Excel data imports and date formatting errors, try WPS Office. It provides a lightweight, highly compatible, and user-friendly spreadsheet environment for all your data analysis needs without the heavy resource usage of Microsoft Office.
- 1. Open Data in WPS: Launch WPS Spreadsheet and open your dataset or CSV file.
- 2. Select Date Column: Highlight the column containing the dates you want to format.
- 3. Format Cells: Right-click, choose 'Format Cells', navigate to the 'Date' category, and select your preferred regional date format.

Frequently Asked Questions
Why does Power Query change my UK dates to US format?
Power Query often defaults to the US locale (MM/DD/YYYY) based on its installation defaults or Windows system settings. When it encounters an ambiguous UK date like 11-05-2024 (May 11th), it misinterprets the 11 as the month (November 5th).
Why do I get a 'DataFormat.Error' on some dates but not others?
This occurs when a UK date has a day greater than 12 (e.g., 21/05/2024). Since there is no 21st month, Power Query's default US locale fails to parse it and returns an error. Days 12 and under don't trigger errors because they are mathematically valid as months, leading to silent data corruption.
Will changing the Power Query locale affect my other workbooks?
No. If you change the locale under 'Current Workbook' > 'Regional Settings', the adjustment only applies to the specific Excel file you are currently editing. It will not alter the global settings for your other workbooks.
Can I fix the date format directly in the Power Query M formula?
Yes. You can manually edit the M code in the Advanced Editor. When using the Table.TransformColumnTypes function, add the culture parameter (e.g., "en-GB") as the third argument to enforce UK date formatting explicitly.




