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 / Issue with date from S...
Power Automate
Answered

Issue with date from Sharepoint - about to lose my mind

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am really hoping someone can help me this because I am about to lose my ever loving mind after trying every variation I kind think of to make this work. I really don't understand why Microsoft makes working with dates such a PITA.

 

I have a sharepoint list with a date only column that apparently returns the format as yyyy-mm-dd from what I can see in the output.

 

In flow I am pulling the items from the list and then attempting to filter an array by that field. I simply want to filter anything that has today's date. That's it. I have been trying variations of formatdatetime and convertfromutc without getting a successful run. I thought formatdatetime would do it, but then it appears in UTC that it is still doing something funky because I get outputs like 2020-56-06 hence why I tried to use convertutc in conjunction with it. Any help would be greatly appreciated to keep my sanity. Thanks.

Categories:
I have the same question (0)
  • Verified answer
    abm abm Profile Picture
    32,981 Most Valuable Professional on at

    Hi @Anonymous 

     

    I will explain how to filter the dates using formatDateTime expression. Here are the details.

     

    Below is my SharePoint list.

     

    image.png

     

    Above I have three records in my list. Next I am going to filter the StartDate against todays date.

     

    Here is my flow configuration

     

    image.png

     

    Above under the filter query I am using the below expression

    formatDateTime(utcNow(),'yyyy-MM-dd')
     
    Note: Place the formatDateTime expression under single quotes.
     
    image.png
     
    Here is my run result and returned two records which matched todays date.
     
    image.png
     
     

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks I am closer as at least it isn't erroring, but is not returning any results either. The odata query I have is

     

    Modified eq 'formatdatetime", the syntax used for formatdatetime is what you gave me as formatDateTime(utcNow(),'yyyy-MM-dd').

     

    I have one result it should return, just modified it today to change the marker, but all I get in output is

     

    {
      "value": []
    }
    Any ideas?
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I think I got around it. It appears to be something specifically with the modified field. If I create a custom date only sharepoint field then your logic works.

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 112 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 52

#3
Ellis Karim Profile Picture

Ellis Karim 51 Super User 2026 Season 1

Last 30 days Overall leaderboard