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 Automate
Answered

How to count Date?

(0) ShareShare
ReportReport
Posted on by

I have file excel in shared point. 

I want to count date in column Import Date to data today.

 

count = (date today - date in column Import Date)

Noona_2-1629427142006.png

 

Please guide me about it.

Categories:
I have the same question (0)
  • Verified answer
    v-LilyW-msft Profile Picture
    on at

    Hi @Anonymous 

    Please try using the Expression below to calculate the difference between the two dates.

    div(sub(ticks('2021-08-20'),ticks('2021-12-01')),864000000000)

    You can refer to screenshots as below:

    vLilyWmsft_0-1629432735156.png

    Expression:

    div(sub(ticks(formatDateTime(utcNow(),'yyyy-MM-dd')),ticks(formatDateTime(outputs('Compose'),'yyyy-MM-dd'))),864000000000)

    vLilyWmsft_1-1629432769816.png

    vLilyWmsft_2-1629432946486.png

    For more info you can refer to:

    https://sympmarc.com/2021/02/22/calculate-the-difference-between-two-dates-in-power-automate/

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

    Hope the content above may help you.

    Best Regards

    If my solution helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Community Power Platform Member Profile Picture
    on at

    @v-LilyW-msft  How to replace 2021-12-01 follow data in excel?

  • v-LilyW-msft Profile Picture
    on at

    Hi @Anonymous 

    Please see the formula in the details, the marked part is the date in excel

    vLilyWmsft_0-1629434944868.png

    Best Regards.

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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard