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 / Add a condition to che...
Power Automate
Answered

Add a condition to check a date field is less than 3 months of the process execution time

(0) ShareShare
ReportReport
Posted on by 10

Hi Guys,

 

I am new to making cloud flows and am I struggling to get a condition working in my cloud flow.

 

I have got the value for the current time and date of the field as below which is fine, however, I am trying to make a condition to check a date field is less than 3 months of the process execution time, and if so fire off an email. I am using my variable as the value and saying if this is less than and then using my fx condition in the image below and then start creating an email

 

Obtained the value of the date and time being used in the field

Jamesp2793_0-1688742564371.png

 

Then making an fx expression to check if the date difference of today(utc now) and check if the adddays is 90, pretty sure this is not correct way of doing this, asking for help on how i can achieve this?

Jamesp2793_1-1688742726737.png

 

I did achieve this in a workflow condition, however this keeps creating multiple of the same email.

 

I am trying to create the same condition in my workflow, but in a cloud flow condition.

Jamesp2793_2-1688742937573.png

 

I hope someone can help go in the right direction please?

Categories:
I have the same question (0)
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Jamesp2793 

     

    To get the date for 90 days from today, you can use the expression: 

    addDays(utcNow(),90)

     

    Can you share more details on where the date value in the variable is coming from? To compare dates in Power Automate, the date format needs to be yyyy-MM-ddThh:mm:ss

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Nived_Nambiar Profile Picture
    18,136 Super User 2026 Season 1 on at

    Hi @Jamesp2793 

     

    Use this expression to compare days difference b/w dates 

     

    add(div(sub(ticks(adddays(utcnow(),90)),ticks(utcnow())),864000000000),2)

     

    Nived_Nambiar_0-1688908861265.png

     

    Refer here for more details: https://manueltgomes.com/reference/powerautomate-function-reference/power-automate-ticks-function/

     

     

  • CrashQ Profile Picture
    10 on at

    Hi Both,

     

    Thank you for the replies, this is the variable i am using for the date field in crm

     

    Jamesp2793_0-1688981771686.png

     

  • Verified answer
    Chriddle Profile Picture
    8,672 Super User 2026 Season 1 on at

    The value of this variable is not a valid date string.

    You might convert it with:

    parseDateTime('12/07/2023 00:00', 'es-es', 'dd/MM/yyyy hh:mm')

     

  • CrashQ Profile Picture
    10 on at

    thanks for the reply chriddle, i have managed to get it working now and for the cloud flow to fire off when the date is in within a 3 months period. The only issue i have now is that it is creating multiple emails which i'll have to look into. 

     

    Thanks for you suggestion.

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard