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
Aamir_khan
Advocate V
Advocate V

Change Text date format to Date type

Hello All

 

I am facing some issue while Change Text date format to Date type 

 

I want Change Text date "2020-04-21" format  to Date type 2020/04/21 but how?

 

1 ACCEPTED SOLUTION

Hi , @Aamir_khan 
right click Date colum ->Chage type ->Using locate

48.png

49.png

For more details , please refer to this post.

 

Best Regards,
Community Support Team _ Eason
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

8 REPLIES 8
Mariusz
Community Champion
Community Champion

Hi @Aamir_khan 

 

You can use the Power Query editor.

image.png

Or change the Data Tape to Date in the model
image.png
 
Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

I try this solution but in some of the date gets errors

Hi @Aamir_khan 

 

Can you paste a sample with some good and bad ( errors ) examples?

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

Capture.JPGCapture2.JPG

Anonymous
Not applicable

That's because you want to parse in the US format while you should in the UK one... or the other way round. You have to convert using Change Type with Locale.

 

If you scan all the messages in this thread... you'll notice a picture in which there's an option "Using Locale..." You have to use it.

Best
D

How will I change that 

Hi , @Aamir_khan 
right click Date colum ->Chage type ->Using locate

48.png

49.png

For more details , please refer to this post.

 

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

 

amitchandak
Super User
Super User

Date = Date(left([column],4),mid([column],6,2),right([column],2)

 

If it has already column detected as date try to change the format

Data Format New Rib.png

 

You can also create a formatting

Formatted Date = format([New date],"YYYY/MM/DD")

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.