Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Date/Time format

Hi, struggling to figure out how to change date/time format in PowerBI.

I have bunch excel files that include a column called Time in a following format:

 

7/5/2021 6:00:00 AM  - mm/dd/yyyy hh:mm (5th of July 2021 6 am)

 

When imported, no matter what I do, it is converted to 5/7/2021 6:00:00 AM - mm/dd/yyyy hh:mm (7th of May 2021 6 am)

 

So format kind of stays the same but month and day values are swapped.

  • Hi, Anonymous 

     

    Indeed, sometimes I encounter this situation, I usually solve it like this. You can try to change type with locale.

     

    Best regards

     

    Janey guo

    Community Support Team _ Janey
    If this post helps, please consider accept as solution to help other members find it more quickly.

3 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi amitchandak  thanks for the comment! tried both, doesn't seem to be working. No matter what format (custom in Model formatting) I choose, dd is confused with mm and other way around.

  • v-janeyg-msft's avatar
    v-janeyg-msft
    Community Support

    Hi, Anonymous 

     

    Indeed, sometimes I encounter this situation, I usually solve it like this. You can try to change type with locale.

     

    Best regards

     

    Janey guo

    Community Support Team _ Janey
    If this post helps, please consider accept as solution to help other members find it more quickly.