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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
adarshmp8998
Regular Visitor

Date Format Error

Hi All,

 

My date-time format is the same still getting an error.

 

adarshmp8998_0-1699168461744.png

 

Regional Setting:

adarshmp8998_0-1699168636963.png

 

 

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

Hi @adarshmp8998 ,

 

The locale(English United States) you selected doesn't work for dates in "DD-MM-YYYY" format.

Picture3.png

Try changing your locale as English (United Kingdom).

Picture4.png

Result:

vstephenmsft_0-1699321761444.png

 

Here's how to fix it:

1.Error Scenario for Reverting:

vstephenmsft_1-1699323022113.png

2.Convert the datetime column contains error to a text column.

vstephenmsft_2-1699323123663.png

Select "Replace current".

vstephenmsft_3-1699323132518.png

vstephenmsft_4-1699323155984.png

3.Right click the column, Change Type, Using Locale...

vstephenmsft_5-1699323179490.png

Data Type: Date/Time, Locale: English (United Kingdom)

vstephenmsft_6-1699323209407.png

vstephenmsft_7-1699323241602.png

 

 

Of course, you can also set up a new local in the regional settings and then re-load it, which I think will work as well.

 

 

Best Regards,

Stephen Tao

 

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

2 REPLIES 2
v-stephen-msft
Community Support
Community Support

Hi @adarshmp8998 ,

 

The locale(English United States) you selected doesn't work for dates in "DD-MM-YYYY" format.

Picture3.png

Try changing your locale as English (United Kingdom).

Picture4.png

Result:

vstephenmsft_0-1699321761444.png

 

Here's how to fix it:

1.Error Scenario for Reverting:

vstephenmsft_1-1699323022113.png

2.Convert the datetime column contains error to a text column.

vstephenmsft_2-1699323123663.png

Select "Replace current".

vstephenmsft_3-1699323132518.png

vstephenmsft_4-1699323155984.png

3.Right click the column, Change Type, Using Locale...

vstephenmsft_5-1699323179490.png

Data Type: Date/Time, Locale: English (United Kingdom)

vstephenmsft_6-1699323209407.png

vstephenmsft_7-1699323241602.png

 

 

Of course, you can also set up a new local in the regional settings and then re-load it, which I think will work as well.

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.           

Ahmedx
Super User
Super User

Share sample pbix file to help you.

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.