Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
surajbh
Helper I
Helper I

Different Date format- dd/mm/YYYY and dd.mm.YYYY

I have different date format ( dd.mm.YYYY and dd-mm-YYYY ) in the source file at the same column- Date, and would like to convert those different format into a single format of Date on powerquery. 

Looking for the best and easily solution. 


Thank you in advance for the support. 

😊

Regards, 

Suraj 

 

1 ACCEPTED SOLUTION

i could manage with further google, to change the setting of power bi- now it works. 
thanks for the direction- was helpful,

surajbh_0-1678432506697.png

 

Thanks.

 

View solution in original post

9 REPLIES 9
Anonymous
Not applicable

Hi, I think this Global regional settings will work only for import mode but mine is direct query mode. My issue is date is in text format in dd-mm-yyyy format in tabular cube and in power bi report it is showing as dd-mm-yyyy format but when i export to excel few dates are displayed as dd-mm-yyyy format and few in dd/mm/yyyy format, can someone please help?

Excel is interpreting some of the dates as real dates and others as text strings. This is usually due to a mismatch between the date format and your Excel windows date settings. During the import process, you will need to tell excel the format of the incoming dates, BEFORE it converts them.

 

How exactly are you exporting to Excel? If it is a CSV file, then IMPORT it into Excel using either Power Query or the Legacy Import Wizard, and be sure to tell the legacy import tool that your incoming csv has dates in DMY format (or use the optional culture argument in the step in Power Query where you first set the data types).

Einomi
Helper V
Helper V

Hello,

I am not sure where the 12/31/9999 comes from ? can you explain

this is coming from one of the source file. 
i do not have the edit right on the source file.

Einomi
Helper V
Helper V

Hi, can you share a screenshot of the source file and the expected outcome

 

From what you wrote, why cannot you just replace the values all the . by / and all the - by / ?

the source is an excel file, and i would like to bring those two dates format into 1 same format.

In your Excel file, the left-justified strings that look like dates are actually text strings and not "real dates".  Because of how Excel stores and parses dates, I suspect that the dates are coming from a CSV or text file that was OPEN'd; the original dates are in MDY format, but your computers regional settings call for dates to be in a DMY format. If that is the case, I suggest you IMPORT the csv file directly into Power Query, and set the date format by locale, using something like English-US for the date column.

 

Note that if my assumptions are correct, even the valid dates will have been converted incorrectly.

i could manage with further google, to change the setting of power bi- now it works. 
thanks for the direction- was helpful,

surajbh_0-1678432506697.png

 

Thanks.

 

 

surajbh_1-1678106502329.png

If i convert the column into date format- it will show

surajbh_2-1678106587532.png

This is the error message, i get when i click on Error-

surajbh_3-1678106627812.png

Hope this helps. 

Thank you. 

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.