Forum Discussion

rbrickman23's avatar
rbrickman23
New Member
2 years ago
Solved

Date Not Converting from UK to US

Hello   I have read multiple posts on the forums and read the information on https://learn.microsoft.com/en-us/power-query/data-types however I am still having issues converting from UK to US forma...
  • Greg_Deckler's avatar
    2 years ago

    rbrickman23 Right-click the column header. Change type, From Locale choose Date and choose UK English

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi rbrickman23 ,

    Greg_Deckler Nice Answer! And rbrickman23 I'll try to explain in more detail what this function does for you.
    The effect of Using Locale is to automatically modify the data types of the data columns based on the format of the locale you select, rather than changing the format of your date display to the format of the locale you select. 
    For example, if you select "Date and US English" in Using Locale, it means that you let Power Query automatically determine what the year, month, and day of the date you enter is in US format (MM/DD/YYYYY). While the date you entered is in UK format (DD/MM/YYYYY), the month can only be 1-12 but the day can be more than 12, and when the system reads a date with a day greater than 12, it will report an error (because the system thinks it is the month).

    So just as Greg_Deckler said, choose "Date and UK English" in Using Locale:
    Here is my sample data:


    This is my region:

    Change the data type and the final output is as below:


    Best Regards,
    Dino Tao
    If this post helps, then please consider Accept both of the answers as the solution to help the other members find it more quickly.