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 / Filtering Arrays for D...
Power Automate
Answered

Filtering Arrays for Date Match

(0) ShareShare
ReportReport
Posted on by 20

Hello! I am getting this error: The execution of template action 'Filter_array' failed: The evaluation of 'query' action 'where' expression '@contains(formatDateTime(item()?['Date Opened'], 'MM-dd-yyyy'), triggerBody()['key-button-date'])' failed: 'In function 'formatDateTime', the value provided for date time string '45203' was not valid. The datetime string must match ISO 8601 format.'.

 

My goal is to only have the HTML created with rows where "Date Opened" = the date triggered. I tried this formula, but am still having issues: 

formatDateTime(item()?['Date Opened'],'MM-dd-yyyy')
 
Below are the Excel table and screenshots of the failed flow.
bsprakermg_3-1696448748061.png

 

 

bsprakermg_0-1696448569025.png

bsprakermg_2-1696448612117.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    Update your List Items in a table action to return dates in ISO 8601 format.

    SudeepGhatakNZ_1-1695369373012.png

  • bsprakermg Profile Picture
    20 on at

    Yes! It was that simple, thank you!!

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
David_MA Profile Picture

David_MA 77 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 68

#3
Expiscornovus Profile Picture

Expiscornovus 56 Most Valuable Professional

Last 30 days Overall leaderboard