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 / check whether date is ...
Power Automate
Unanswered

check whether date is within 90 days of current date in filter query

(0) ShareShare
ReportReport
Posted on by 53

Hi all,

I'm trying to add a filter in the filter query to check if a given record is within 90 days of the current date. I came up with the current code:

less(int(split(dateDifference(testDate,utcNow()), '.')), 90)

 

But when I run the Power Automate flow, it gives me a bad request error. I was wondering whether the above is correct to check for dateDiff?

 

Jason

 

Categories:
I have the same question (0)
  • janessanelson Profile Picture
    34 on at

    I found that Power Automate has some issues with referencing between two dates. I have had a lot more success converting the dates into "ticks". 

     

    I do this with a few extra steps, but it works every time when I do it this way. 

     

    1) Create a compose action for "Current Date": use the expression: Ticks(utcNow()). 

    2) Create a compose action for "90 Days": use the expression Ticks(adddays(utcnow, -90, 'MM/dd/yyy'))

    3) You can then reference these two outputs in your filter query. 

     

    You could potentially combine them all together into one formula if you are feeling bold. Hopefully that helps!

  • Chriddle Profile Picture
    8,667 Super User 2026 Season 1 on at

    In the expression less(int(split(dateDifference(testDate,utcNow()), '.')), 90) you are trying to convert an array to an integer 😉

     

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 557

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 264 Super User 2026 Season 1

Last 30 days Overall leaderboard