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 / 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,270 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

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard