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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Alex_0201
Post Partisan
Post Partisan

Date/Time format

Hi, struggling to figure out how to change date/time format in PowerBI.

I have bunch excel files that include a column called Time in a following format:

 

7/5/2021 6:00:00 AM  - mm/dd/yyyy hh:mm (5th of July 2021 6 am)

 

When imported, no matter what I do, it is converted to 5/7/2021 6:00:00 AM - mm/dd/yyyy hh:mm (7th of May 2021 6 am)

 

So format kind of stays the same but month and day values are swapped.

1 ACCEPTED SOLUTION
v-janeyg-msft
Community Support
Community Support

Hi, @Alex_0201 

 

Indeed, sometimes I encounter this situation, I usually solve it like this. You can try to change type with locale.

vjaneygmsft_0-1626159495296.png

 

Best regards

 

Janey guo

Community Support Team _ Janey
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
v-janeyg-msft
Community Support
Community Support

Hi, @Alex_0201 

 

Indeed, sometimes I encounter this situation, I usually solve it like this. You can try to change type with locale.

vjaneygmsft_0-1626159495296.png

 

Best regards

 

Janey guo

Community Support Team _ Janey
If this post helps, please consider accept as solution to help other members find it more quickly.
amitchandak
Super User
Super User

@Alex_0201 , Hope data type is date.

One option column tool, you can choose data format. Once you click you will see that tab.

 

The second is under Data Modelling you have an option for formatting, you should able to give format you want under property

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-custom-format-strings

Hi @amitchandak  thanks for the comment! tried both, doesn't seem to be working. No matter what format (custom in Model formatting) I choose, dd is confused with mm and other way around.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.