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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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")

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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