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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Ticks function is unab...
Power Automate
Unanswered

Ticks function is unable to compare the dates

(0) ShareShare
ReportReport
Posted on by 182

I have Created Date and Completed Date for comparison. These dates from the SharePoint List is stored in variables. Because it is not accessible inside Do Until Loop. Hence Ticks function is not comparing properly.

 

For example, Created Date is assigned to a string variable and using ticks function 

ticks(formatDateTime(variables('createdDate'),'MM/dd/yyyy')) compared to the Completed Date using same tick function. However it is not working as expected. 

 

Categories:
I have the same question (0)
  • ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @Sajith 

    Please post a copy of your Flow.

     

  • Sajith Profile Picture
    182 on at

    Created and Completed Dates are same day. No Time is considered. 

    Created is assigned to a variable called formatCreated and set it to -  formatDateTime(Created),'MM-dd-yyyy') or formatDateTime(Created),'MM/dd/yyyy')

     

    . Then used the function ticks for comparison

    ticks(formatCreated) is greater than ticks(formatCompleted). However the Do Until Loop goes inside.

     

     

     

    ticks-issue.jpg

  • Sajith Profile Picture
    182 on at

    Infact Created Date is not available. Hence assigned to a variable.

     

    ticks-issue.jpg

     

    2022-07-20_12-32-31.jpg

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 873

#2
Valantis Profile Picture

Valantis 813

#3
Haque Profile Picture

Haque 526

Last 30 days Overall leaderboard