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 / Issue with Conditional...
Power Automate
Unanswered

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'




Categories:
I have the same question (0)
  • Verified answer
    Srini007 Profile Picture
    3,323 Super User 2025 Season 2 on at

    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

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

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard