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

Community site session details

Session Id : unEUdnkmaIJPCwJrTy0v5W
Power Automate - Building Flows
Answered

UTC Date condition failing for notifications

Like (0) ShareShare
ReportReport
Posted on 14 Jun 2018 17:59:58 by 50

I want my action to run upon the condition IF current month is less than or equal to February.

I tried utcnow('MM') is less than or equal to 02 but it won't work. 

Getting the error message that they dont match the correct format. How do I add `02` as a month format? Month('2') does not work.

I have the same question (0)
  • jhuynh Profile Picture
    50 on 20 Jun 2018 at 17:50:51
    Re: UTC Date condition failing for notifications

    perfect, thank you!

  • Verified answer
    v-yuazh-msft Profile Picture
    on 18 Jun 2018 at 02:05:34
    Re: UTC Date condition failing for notifications

    Hi @jhuynh,

     

     

    You could take a try to enter the expression in the Condition as below:

    @lessOrEquals(int(utcNow('MM')), 02)

     

    I have made a test on my side to create a flow as screenshot below:

    Capture.PNG

     

    Because the current month is June, the June is greater than February, so the result of the Condition should be false,and the flow should run successfully as below:

    Capture.PNG  

     

     

     

    Please let me know if your problem could be solved.

     

    Best regards,

    Alice

     

     

     

     

     

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2