'Power Automate Desktop Returns "1/1/0001" when using "Get current date and time"
I am using Power Automate desktop to set up a flow. For this flow I need to get the current date, use it to get the most previous Monday, and get the date from that. When I try to use the "Get current date and time" action in desktop, I set the TimeZone as "specific time zone" then "Country/Region" to my time zone.
The resulting variable, CurrentDateTime, has a value of "1/1/0001 12:00:00AM". Any recommendations on how to fix?
Edit: I've also tried using "System Time Zone" and get the same result
Solution 1:[1]
i don't know if this is still relevant to you, but maybe it will be for someone else. I had the same issue when i tried to get CurrentDateTime.
The Reason for the Problem was, that i put the Action in the middle of the Flow. After i placed it in the beginning of the Flow it got the correct value.
TL;DR: Place the Action at the beginning of the flow.
Hope this works for you too.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | lt-94 |