Forum Discussion
Date Format Error
GK600 - I am not sure I entirely follow this but when I get dates in a European format in the forums and need to convert it, I do the following:
- In Power Query, split by /
- Change all created columns to Text
- Concatenate them back in the order I want in a new column, [2] & "/" & [1] & "/" & [3]
- Convert to date
- Remove other columns
This is all in Power Query.
- GK6005 years agoHelper II
Thanks Greg_Deckler for your repsonse.
I actually don't need date to convert into UK format. I want it to stick to US format (that's how it appears but with "text" as data type when loaded into Power BI). The moment, I change the data type to "Date", it starts to cause issues.
I anyway tried as you suggested but strangely when I changed it to "Date" as Data type, it converts it into UK format (I also tried using locale). Please see below. This is quite weird as I do have US as regional setting for this file. Not sure why its pushing it to UK format.
Any pointer will be helpful.
regards,
Gaurav
- Greg_Deckler5 years agoCommunity Champion
GK600 - What are your regional settings File | Options and settings | Options | GLOBAL | Regional settings and also CURRENT FILE | Regional Settings. Also check if Model language has been set.
- GK6005 years agoHelper II
Thanks for your quick response.
Please see below. Model language shows "Use Application Language".
Find below the regional settings but I tried to change it to US as well but it still converts to UK date format. (I also used "Use locale" to set the date type etc. but didnt help)
Hope this helps to review the problem.
Gaurav