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 / Questions about the Co...
Power Automate
Answered

Questions about the Condition function

(0) ShareShare
ReportReport
Posted on by 4
Hello,

I'm building a flow where I need to compare whether the current date is equal to a specific date.
 
I ran a test and compared if ticks(utcNow()) is equal to ticks(utcNow()).

It returned FALSE.
It should return TRUE, right?

Can you help me?
 
 
Categories:
I have the same question (0)
  • CU27030035-0 Profile Picture
    93 on at
    That's right 
     
    By using the Ticks function you measured in nano seconds 
    So time had passed between it calculating both values (like 3 nano seconds) so the values were not equal  e.g. is 11:55:23AM = 11:55:25AM
    It literally took a second to calculate so the values were different
     
    Assuming the dates your trying to compare one is a stored date and one is the current date 
    Use the convert time zone control (https://learn.microsoft.com/en-us/power-automate/convert-time-zone) to get your UTC now into the correct regional formatting 
    and then put your other value against it (if its in the same format, if not format it so they are)
    then you should get the desired comparison
  • Verified answer
    11manish Profile Picture
    457 on at
    In Microsoft Power Automate, this behavior is expected.
     
    Why it returns FALSE
    • utcNow() is evaluated each time it’s called
    • So both sides have slightly different timestamps (milliseconds difference)
    Result = FALSE
    Best fix
    Store the value once:
    • Initialize variable → varNow = utcNow()
    • Then compare:
    • ticks(variables('varNow')) = ticks(variables('varNow'))
    If comparing dates only

    formatDateTime(utcNow(), 'yyyy-MM-dd')
    =
    formatDateTime('2026-03-20', 'yyyy-MM-dd')

     
     
    • Calling utcNow() twice → different values
    •  Store once or compare only the date part
  • CU19032123-0 Profile Picture
    4 on at
    @11manish It worked perfectly!

    Thank you guys!

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 333

#2
David_MA Profile Picture

David_MA 245 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 202 Most Valuable Professional

Last 30 days Overall leaderboard