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
bishnu
Helper II
Helper II

Error in date when formatting to date

I having problem when i changing (text to date type).

Annotation 2020-04-02 171847.png

the original format is d/m/y, but when i am changing text to date type its randonly changing format to d/m/y and m/d/y

Annotation 2020-04-02 171829.png

On to the left is original  and to the right is the one after i chnaged to date format. 

 

Can anybody help me to figure out why is this hapenning. I tried to extrat day and month/year seperately and later remerge, but the end result is the same.

 

Thanks in advance

 

BB

1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

@bishnu 

try column

fld_due_date Copy = DATE(MID([fld_due_date],7,4),MID([fld_due_date],4,2),LEFT([fld_due_date],2))

it looks like regional settings issue 


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

In case all your dates are in dd/mm/yyyy format please do following setting

https://community.powerbi.com/t5/Desktop/How-to-apply-UK-date-format-dd-mm-yyyy-in-Date-slicer/td-p/...

az38
Community Champion
Community Champion

@bishnu 

try column

fld_due_date Copy = DATE(MID([fld_due_date],7,4),MID([fld_due_date],4,2),LEFT([fld_due_date],2))

it looks like regional settings issue 


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Thanks a lot. its worked. can you let me know why this happened. I still couldnt figure it out why this happened.

Mariusz
Community Champion
Community Champion

Hi @bishnu 

 

Check your Regional Settings

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

 

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.