changing date formatting in Power Query

lezawang

Well-known Member
Joined
Mar 27, 2016
Messages
1,805
Office Version
  1. 2016
Platform
  1. Windows
Hi
I have Date column in PowerQ and I want to change the format from for example yyyy.mm.dd to dd.mm.yyyy, I found the site but I thought it must be easier than that. I thought it is like excel, highlight and go to custome format and do DD-MM-YYYY or whatever format you want .. Is there easier way to change the format in PowerQ for the date? thank you very much.

 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Step 1 is to change the data type from ABC123 to Date.
Have you done that ?

1623388552229.png
 
Upvote 0
Thank you. I changed it to Date and it is date now in this format yyyy-mm-dd
how can I change it to dd-mm-yyyy for example? Thank you again
 
Upvote 0
Power Query by default will show the date in whatever the format is as set by your windows short date regional setting.

A quick way to check that is to create a new empty workbook and in any cell hit Ctrl+; (semi-colon).
It should enter today's date in the short date format as set by the Region Setting.
If this is yyyy-mm-dd then that is why Power Query is showing that.

If your region format is different to that. Are you by any chance working in a workbook you received from someone else ?
If you and they have used PQ then you can have a look in the PQ settings

File > Options and settings > Query Options > Current Workbook > Regional Settings > Locale (yours)

Note: you can not format in PQ as such. You can only set the data type so that Excel will get the right type and Excel is able to format it. The final date format would be done in Excel.

1623462572649.png
 
Upvote 0

Forum statistics

Threads
1,214,375
Messages
6,119,166
Members
448,870
Latest member
max_pedreira

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top