I think Power Automate Desktop is a great tool and have been able to automate some complex processes, but right now I'm stuck on something so simple! All I want to do is write a date into a cell in Excel, but whatever I try it writes text that Excel cannot recognise as a date. I've broken this down to the simplest example, start with an Excel file with a date in cell A1, open this file in PAD, read the value of A1, add 7 days to it and write the result back to the same cell. The result written back is text not a date. Don't know if it makes a difference, but I am in the UK, using UK date formats. I've checked everywhere, Windows, Office, Browser etc and all are set to the same UK language and date formats. My test Flow is below along with the result after I run it.
I'm sure I'm missing something incredible simple, but can't work out what that is!
Solved! Go to Solution.
Thanks, tried adding a "convert datetime to text" step and with the custom format set to yyyy-MM-dd hh:mm:ss this now works as expected.
Can't help thinking you shouldn't need to do this and somewhere inside PAD it is using US date formats regardless of local settings, but I can carry on now anyway
Yeah, unfortunately PAD by default is using a human readable date format which Excel doesn't recognize. There is still some way to go for Microsoft to bridge the gaps between Flow and Winautomation.
when PAD reads system date, it assumes US format, reading the day as month, Month as day...
for now, it works when i "Convert datetime to text" then:
- format to use: Standard
- Standard format: Full datetime (short time)
I hope it keeps working.
Check out the News & Announcements to learn more.
Participate in the Power Virtual Agents Community Challenge
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.