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
amalrio
Helper V
Helper V

change date format

Hi my date column is in the format of MM/DD/YYYY.

 I need to change it to be DD/MM/YYYY is this posible using a calculated column ?

 

below is how it looks at the moment

 

amalrio_0-1607475094690.png

 

1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

Hi @amalrio 

ok no probs. What you need to do is convert the dates based on Locale.

Assuming you start with dates like this

us-dates.png

 

Right click the column and choose Change Type -> Using Locale

using-locale-menu.png

 

Then select the locale of the origin data - set the Data Type to date and as these are m/d/y dates we choose English (United States) for Locale

change-date-locale-aus.png

 

Click OK and you should get 

dmy-dates.png

 

Regards

Phil


If I answered your question please mark my post as the solution.
If my answer helped solve your problem, give it a kudos by clicking on the Thumbs Up.



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

5 REPLIES 5
PhilipTreacy
Super User
Super User

Hi @amalrio 

ok no probs. What you need to do is convert the dates based on Locale.

Assuming you start with dates like this

us-dates.png

 

Right click the column and choose Change Type -> Using Locale

using-locale-menu.png

 

Then select the locale of the origin data - set the Data Type to date and as these are m/d/y dates we choose English (United States) for Locale

change-date-locale-aus.png

 

Click OK and you should get 

dmy-dates.png

 

Regards

Phil


If I answered your question please mark my post as the solution.
If my answer helped solve your problem, give it a kudos by clicking on the Thumbs Up.



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


PhilipTreacy
Super User
Super User

Hi @amalrio 

I really don't advise changing to text.  It's going to make things really complicated.  If you want to go back to date later you have to reformat/rearrange the text strings.  

Why can't you leave it as it is?  Why do you have to see date as d/m/y?

Or change your regional settings to d/m/y if you must see the dates as d/m/y?  But then, I assume you regional settings are set to match where you are, and switching them back and forth isn't ideal either.

regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


amalrio
Helper V
Helper V

the data extract I get from the system has M/D/Y format, my Locale settings are D/M/Y so the report output is not the way I want to be as my locale date setting thinks it is all January. @PhilipTreacy  Thanks

amalrio
Helper V
Helper V

@PhilipTreacy ,

 

 would you tell me how do I change it text and maybe convert to date after

PhilipTreacy
Super User
Super User

Hi @amalrio 

No, not if you want to keep the data as a date type.  You can change it to text but I wouldn't advise doing that.

You're seeing the dates as m/d/y because that's what your PC regional settings are set to.  You could change your regional settings to d/m/y ?

Why do you have to have dates as d/m/y?  What exactly are you trying to do?

regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


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.