logo
search
Power Query Problems

How to Fix Power Query Date Format Errors for DD.MM.YYYY Data

WPS Content ManagerWPS Content Manager Sep 28, 2026 869 views

Question details

The user needs to correctly parse and convert text dates formatted as DD.MM.YYYY in Power Query without triggering a DataFormat.Error.

How to Fix Power Query Date Format Errors for DD.MM.YYYY Data
Product
Microsoft Excel
Device & OS
not provided
Scenario
Importing a dataset where dates are formatted in the European dd.mm.yyyy style, which conflicts with the system's default date settings during the Power Query import process.
Observed behavior
Power Query attempts to convert the text to dates but produces a DataFormat.Error on certain rows because the day value exceeds 12, causing a month-day mismatch.
Before you start

Verify that your original data source is fully closed to prevent file-lock errors, and ensure the date column you intend to convert is currently formatted as 'Text' rather than 'Any' in Power Query.

Solution 1Recommended

Use the 'Using Locale' Feature to Convert Dates

This is the most efficient and direct method. It instructs Power Query to read the specific column using a regional setting that natively understands the DD.MM.YYYY format.

Power Query relies on your system's default regional settings to interpret dates. When importing data formatted differently than your local computer (e.g., importing European DD.MM.YYYY dates on a US machine expecting MM/DD/YYYY), it misinterprets the days and months.

By applying a specific locale only to the affected column, you bypass this mismatch without altering your overall system settings.

1
Select the target column

Open the Power Query Editor and locate the column containing your DD.MM.YYYY text dates.

2
Access the Change Type menu

Right-click the column header, hover over 'Change Type', and select 'Using Locale...' at the bottom of the context menu.

3
Configure the Locale settings

In the dialog box that appears, set the 'Data Type' dropdown to 'Date'. For the 'Locale' dropdown, select a region that uses the DD.MM.YYYY format, such as 'German (Germany)' or 'English (United Kingdom)'.

4
Apply the transformation

Click 'OK'. If prompted to replace the current conversion step, choose 'Replace current'. Your dates will now parse correctly without errors.

Use the 'Using Locale' Feature to Convert Dates
Tip: Ensure you remove any automatic 'Changed Type' steps that Power Query might have generated for this column previously, as they can cause the error before your new locale step applies.
Free Microsoft Office alternative

Experience Hassle-Free Data Importing with WPS Office

If you are tired of encountering complex data parsing errors like DataFormat.Error in Microsoft Excel, WPS Office offers a highly compatible and user-friendly alternative. Its intuitive Text-to-Columns wizard and smart data import features make handling international date formats effortless.

  1. 1. Open your data file in WPS: Launch WPS Spreadsheets and open your CSV or Excel file containing the dates.
  2. 2. Use Text-to-Columns: Highlight the date column, navigate to the 'Data' tab, and click 'Text to Columns'.
  3. 3. Select the correct date format: Proceed to the final step of the wizard, choose 'Date', and select 'DMY' from the dropdown to instantly convert European dates to standard values.
100% compatible with Microsoft Excel formats (.xlsx, .xls) and CSVs.Intuitive Text-to-Columns wizard for straightforward date and text parsing.Free, lightweight, and uses minimal system resources.Familiar spreadsheet interface ensuring a seamless transition from Excel.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Power Query show a DataFormat.Error for dates?

This error happens when Power Query attempts to parse text as a date based on your system's default regional settings, but the text format (e.g., DD.MM.YYYY) conflicts with the expected layout (such as MM/DD/YYYY). Dates like 15.01.2023 fail because '15' is invalid for a month.

Can I set a global default locale for Power Query imports?

Yes. You can change your default regional settings for the current workbook by going to File > Options and settings > Query Options. Under 'Current Workbook', select 'Regional Settings' and change the locale to match your standard data sources.

What if my DD.MM.YYYY dates contain a mix of periods and slashes?

Before attempting to change the data type to Date, highlight the column, right-click, and use the 'Replace Values' feature. Replace all slashes with periods (or vice versa) to ensure the delimiter is uniform, then apply the 'Using Locale' conversion step.

Will changing the locale in Power Query affect my computer's clock and date settings?

No. Utilizing the 'Using Locale' feature in Power Query applies strictly to that specific transformation step in the editor. It does not alter your Windows regional settings or the display formatting in your final Excel worksheet.