web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : 5z0uVXlUp9KmbBQXqOsI5d
Power Automate - Using Flows
Answered

UK date format

Like (0) ShareShare
ReportReport
Posted on 7 Jun 2022 10:23:08 by 42

Hi i am trying to get a flow to look at yesterdays list items.

 

i have a filter query that is:

Created ge 'addDays(utcNow('yyyy-MM-dd'),-1,'yyyy-MM-dd')'

 

but i get the error

The expression "Created ge 'addDays(utcNow('yyyy-MM-dd'),-1,'yyyy-MM-dd')'" is not valid. Creating query failed.

 

I think it is because my date is in the UK format

 

 

5/31/2022 4:56 PM

So i tried

Created eq 'addDays(utcNow(),-1,'MM-dd-yyyy')

it just doesnt want to filter.

 

Thank you for your help

 

 

  • jacktherip Profile Picture
    42 on 07 Jun 2022 at 12:28:59
    Re: UK date format

    Hi

    Thank you

    I think it was being caused by this weird way i enabled to do filters causing my issue

     

    it shows as blank but the expression is in there really. as it was blank i was clicking the two arrows and that wasnt working out for me.  back on track now.  thank you

    jacktherip_1-1654604892266.png

     

  • Verified answer
    RobElliott Profile Picture
    10,166 Super User 2025 Season 2 on 07 Jun 2022 at 11:47:33
    Re: UK date format

    @jacktherip can I check that you are not just typing the expression into the Filter Query field? It must be done from the Expression tab of the dynamic content box and be inside single quotes.

     

    filterQuery5.png

     

     

    Rob
    Los Gallardos
    If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Featured topics

Restore a deleted flow
Loading complete