Power Automate seems to output my time from excel sheets into decimal form. Below is an example of the cell I use for time
Then when it goes through flow, when checking the table - It comes out with this
Then when isolating the individual time it comes out the same
How do I convert it back to the original time in the cell?
Thanks,
Tyler
Hi @Tielure1
So basically how the excel works is, for date it returns the integer calculated as the number of days from 1899-12-29. And for time it is like the percentage of day completed. So if 00:00 is 0% then 12PM is 50% (0.5) and so on. You can find the expression to convert it here:
Hope this Helps!
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
Try formateDateTime() in your processes EG:
Take the time field and do fromatDateTime(Timefield,'hh:mm') I am not sure of the actual 'hh:mm' code as it may be upper etc
Try formateDateTime() in your processes EG:
Take the time field and do fromatDateTime(Timefield,'hh:mm') I am not sure of the actual 'hh:mm' code as it may be upper etc
How would I implement this into flow? My flow has to iterate through each row in an excel sheet and convert it?
Thanks,
Tyler
Hi @Tielure1
Were you able to resolve? Can you take a try using the expression provided on the URL that I have shared? You have to wrap the dynamic content from the excel outputs into that expression to get the time in hours and minutes.
Hope this Helps!
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
Power Automate User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.
User | Count |
---|---|
49 | |
10 | |
10 | |
10 | |
7 |
User | Count |
---|---|
76 | |
22 | |
14 | |
11 | |
11 |