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 :
Power Automate - Building Flows
Answered

Issue with Conditional Check Using formatDateTime in Power Automate

(0) ShareShare
ReportReport
Posted on by

Hello everyone,

I'm building a flow in Power Automate that should trigger based on specific days of the month. I started by setting it up to run on the 25th, but I plan to add more days in the future.

To determine the current day, I'm using the expression formatDateTime(utcNow(),'dd'). I then compare the output to my target days (for now, just the 25th).


Flow setup:

FarmaVIP_0-1698234672595.png


Problem: The expression result is always false. 

I even try to use compose to see the output and it is 25, but the expression result is always "false"

FarmaVIP_1-1698234721293.png

 

I already try to use:
-formatDateTime(utcNow(),'dd') equals '25'
-string(formatDateTime(utcNow(),'dd')) equals '25'




I have the same question (0)
  • Verified answer
    Srini007 Profile Picture
    3,283 Super User 2025 Season 2 on at
    Re: Issue with Conditional Check Using formatDateTime in Power Automate

    Hi @FarmaVIP 

     

    You can try giving "25" in double quotes instead of 25 or '25'

    String goes with "25" and integer goes with 25

     

    Srini007_0-1698236194533.png

     

    Srini007_1-1698236235103.png

     

     

    If you find this reply helpful, please consider giving it a LIKE AND

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION

     

    Regards,

    Srini

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…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 666 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 382 Moderator

#3
developerAJ Profile Picture

developerAJ 254

Last 30 days Overall leaderboard