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 / SharePoint Get Items F...
Power Automate
Answered

SharePoint Get Items Filter Query Date format issues

(0) ShareShare
ReportReport
Posted on by

Hi,

 

What I though would be simple thing to do is causing me to pull my hair out! 🙂

 

Flow Requirement:

 

- Run against a SharePoint list once a week and return all the items that are newer than a predetermined date.  The SharePoint list column is a standard "Date" column, and this regional settings are UK (dd/mm/yyyy) format

 

Flow Configuration:

 

- Get Items looks up in list with the following filter query configuration

-- Get items that have a date newer than 1st October 2019

-- In an attempt to ensure that the date is read in the right format I've created the express as below

 

flow-spdate1.png

 

Flow Output:

 

The filter query has the wrong date, it's changed to MM/dd/yyyy so the wrong items are retrieved from the list.

 

flow-spdate2.png

 

I've played around with query filter and it constantly changes the date to MM/dd/yyyy format when the flow runs.....argh!

 

Any help gratefully received....or I might need to go hat shopping very soon 🙂

 

Rob

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    Gristy Profile Picture
    2,429 on at

    formatdatetime expects the input mm-dd-yyyy so when you convert it, that is why it is flipped because it thinks you have entered the 10th of January. Just switch the date format around in the first part of your express

  • Rob_CTL Profile Picture
    on at

    @Gristy thanks for that, I thought I had tried that already and making the changes as you suggested has changed the output value

     

    flow-spdate3.png

     

    However it looks like the formatting wasn't my issue, as the flow is seems to be ignoring this filter query completely and is still returning the wrong items.  Remember when IT used to be straightforward.....

     

    Rob

     

    Edit: go this working by clearing out the formula, saving the flow then re-inserting the formula

     

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 598

#2
Valantis Profile Picture

Valantis 477

#3
Vish WR Profile Picture

Vish WR 370

Last 30 days Overall leaderboard