web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Power Automate count t...
Power Automate
Answered

Power Automate count two date difference

(0) ShareShare
ReportReport
Posted on by 105

Hello!
I'm trying to count the difference between 2 data inputs.
Help me please count DD MM and YYYY 

 

 

Categories:
I have the same question (0)
  • Kaif_Siddique Profile Picture
    2,108 Super User 2024 Season 1 on at

    Hi @KK76875875 

     

    Please try the below expression:

    div(sub(ticks('2022-05-13'),ticks('2022-05-04')),864000000000)

     

    Refer the below link to learn How to find the number of days between two dates using Power Automate

    https://powerusers.microsoft.com/t5/Power-Automate-Community-Blog/How-to-find-the-number-of-days-between-two-dates-using-Power/ba-p/837372

     

    Hope this will help you.

     

    Regards

    Kaif

  • KK76875875 Profile Picture
    105 on at

    Hello @Kaif_Siddique 
    I have 2 inputs, not a static dates, I used them just for example
    Anyway, I used your formula and it return -139 value or 139 if I swap variables 
    for 

    div(sub(ticks(outputs('date1')),ticks(outputs('date2'))),864000000000)
    date 1 = 2022-02-12
    date 2 = 2022-07-01
  • Verified answer
    KK76875875 Profile Picture
    105 on at
  • Kaif_Siddique Profile Picture
    2,108 Super User 2024 Season 1 on at

    I took static date values for sample reference.

     

    Anyway, issue is resolved and thank you for accepting and closing it. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 378 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 305 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 155 Most Valuable Professional

Last 30 days Overall leaderboard