Date conversion

wikus

Active Member
Joined
May 2, 2010
Messages
320
Office Version
  1. 365
I am trying to convert a general formatted field in power query to a date mm/dd/yyyy but are getting errors.
Any help will be appreciated.
31.12.2023
28.2.2020
16.3.2019
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
I am trying to convert a general formatted field in power query to a date mm/dd/yyyy but are getting errors.
Any help will be appreciated.
31.12.2023
28.2.2020
16.3.2019
Sorry, not too familiar with Power Query, I'm sure someone will reply, but in the meantime, what I do is select the entire column, then do a Find/Replace; Press Ctrl-F then find dot (.) and replace with slash (/).
 
Upvote 0
I am trying to convert a general formatted field in power query to a date mm/dd/yyyy but are getting errors.
Any help will be appreciated.
31.12.2023
28.2.2020
16.3.2019
You define data types in Power Query, not a format.
So you need to set it as a date type. The formatting is done in Excel.

Look for an earlier step with #"Changed Type" as name. It might as well be this field was seen as a text field. If so this step should be changed or removed. In the previous step you can use the change type from locale. Here you need to define the source setting. It will show up as a data matching your locale setting.

With my local setting is works with simply defining the data type date, since the source setting matches my local setting.
1708362119737.png

9 out 10 you need to go via "Using Locale..."
1708362175332.png

Then use one of the many options that accept this source format.
1708362242150.png
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,875
Members
452,363
Latest member
merico17

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