Forum

Notifications
Clear all

Convert dates to a proper structure

4 Posts
2 Users
0 Reactions
96 Views
(@usb)
Posts: 244
Honorable Member
Topic starter
 

I have a column with a lot of dates
In improper structure -
Dodge 20080106
I need to convert them to normal structure - 06/01/2008
I would appreciate help
Leah

 
Posted : 15/11/2021 8:24 am
(@usb)
Posts: 244
Honorable Member
Topic starter
 

I need to convert this within the Power Query
How do you do that?

 
Posted : 15/11/2021 10:53 am
Anders Sehlstedt
(@sehlsan)
Posts: 970
Prominent Member
 

Hello,

Have you tried using the DATE function? You will also need to use the LEFT, MID and RIGHT functions to get the values for the date.

=DATE(LEFT(F2,4),MID(F2,5,2),RIGHT(F2,2))

Br,
Anders

 
Posted : 15/11/2021 12:29 pm
Anders Sehlstedt
(@sehlsan)
Posts: 970
Prominent Member
 

Hello Lea,

Ceck this Microsoft article about #date function in Power Query.

/Anders

 
Posted : 15/11/2021 6:05 pm
Share: