cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DarrylJP
Helper I
Helper I

Number of Days between 2 Dates

I have a Flow i created to output a Table to HTML, format it, and send it via email.

 

I want to add another column that shows the age of an outstanding incident but am stuck on it/can't get it to work, despite using the various threads on this matter as reference. My failures seem to keep being stuck on the fact my "Date Recieved" field is of type mm/dd/yyyy with no timestamp.

 

I am simply trying to calculate the numbers of days between utcnow and 'Date Recieved' in an Apply To Each function so i can attach it to my HTML table for multiple rows.

 

I tried the ticks method but keep getting an error regarding my data being a string and not the proper timestamp format.

 

I do have a calculated Aging field already in my Sharepoint List but when i append it to the table 8 days comes out as 8.00000000000 which is not ideal.

 

Does anyone know of a proper method to achieve this???

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

 

Hi @DarrylJP ,

 

Please provide a screenshot of the current Flow configuration so that we could provide you with the appropriate expression.

In addition, you could refer to this blog to learn more about the usage of ticks() function.

https://powerusers.microsoft.com/t5/Power-Automate-Community-Blog/Flow-Calculate-Date-Diference/ba-p...

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
abm
Super User
Super User

Hi @DarrylJP 

 

Could please post your ticks expression you are using?

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
v-bacao-msft
Community Support
Community Support

 

Hi @DarrylJP ,

 

Please provide a screenshot of the current Flow configuration so that we could provide you with the appropriate expression.

In addition, you could refer to this blog to learn more about the usage of ticks() function.

https://powerusers.microsoft.com/t5/Power-Automate-Community-Blog/Flow-Calculate-Date-Diference/ba-p...

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
DragonLord
Helper III
Helper III

how about giving us a DateDiff function?

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,395)