Forum

Format date - autom...
 
Notifications
Clear all

Format date - automation

2 Posts
2 Users
0 Reactions
56 Views
(@christinet)
Posts: 5
Active Member
Topic starter
 

Hi Mynda

I have a report that has date format which I constantly have to use Data/Text to Column to change it .  The issue has nothing to do with Locale - more to do with the format of the file. You wrote an article about it 

Can M language used to resolve this so that it is automated within power query ?  Or is there a way to automate this ?

 

https://www.myonlinetraininghub.com/excel-custom-number-format-guide#_Toc474757766

 

Christine

 

See attached file

 
Posted : 30/07/2023 7:50 pm
(@mynda)
Posts: 4761
Member Admin
 

Hi Christine,

Yes, Power Query can fix these dates. It looks like this might have been a text or CSV file that you've opened in Excel? I say this because some of the dates are proper date serial numbers and some are text (those dated 13th and above). This is a locale issue.

If so, instead of opening the file, use Power Query to get the file and bring it into Excel. That way you can fix the date before loading.

Let me know if you get stuck.

Mynda

 
Posted : 31/07/2023 7:16 pm
Share: