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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
sathyaramesh
Advocate II
Advocate II

changing Date Format

I have the data with date format as (02.08.2018). By default it taking as Text datatype.

If i change to date format then i am getting error for whole data

How to change into Date format.

I have no problem with date like(02-08-2018) and (02/08/2018)

 

Thanks,

Ramesh

1 ACCEPTED SOLUTION

Hi @sathyaramesh,

Based on my test, it do will convert to text format with "dd/mmm/yy", it may due to your location, you could refer to below blog that may help you:

https://www.oraylis.de/blog/local-date-formats-in-power-bi

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

9 REPLIES 9
Johanno
Continued Contributor
Continued Contributor

I think your regional settings must match the format the use. But if there is no other way you could extract the date from the text using as a calculated column:

Date format = DATE(RIGHT(Table1[Date];4);MID(Table1[Date];4;2);LEFT(Table1[Date];2))

 

Now i tried this format Date = DATE(MID(Table1[Date],7,4),MID(Table1[Date],4,2),MID(Table1[Date],1,2))

I am getting date datatype.

Now i need to change the date format manually to this DATE. 

Like "dd/mmm/yy"

How to get that?

Johanno
Continued Contributor
Continued Contributor

Hi, you almost said it yourself. Smiley Happy Try FORMAT(Datewiththewrongformat;"dd/mm/yy")

Yeah i tried that too. But if i change format to this newly created Date again it going back to Text Format.

Getting error message for the format date dax

 

"Cannot convert value '16.07.2018' of type Text to type Date."

Johanno
Continued Contributor
Continued Contributor

Sorry, then I don't know. It works over here. I'm guessing that the regional settings must match the date formats you're working with. Hope someone else can help.

Anyway Thank you so much for all the replaySmiley Wink

Hi @sathyaramesh,

Based on my test, it do will convert to text format with "dd/mmm/yy", it may due to your location, you could refer to below blog that may help you:

https://www.oraylis.de/blog/local-date-formats-in-power-bi

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you so muchSmiley Happy

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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