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 Apps / Filter sharepoint list...
Power Apps
Suggested Answer

Filter sharepoint list using DateOnly field, should we pass the local date or UTC date

(0) ShareShare
ReportReport
Posted on by 2,015 Season of Giving Solutions 2025
now i a have a dateonly inside sharepoint i enter it as 15/05/2026 and it got saved as 14/05/2026 21:00 inside sharepoint, as the local setting and sharepoint site setting is UTC+3..  then inside power apps i added a Date Picker , and i set this filter to the gallery:-

Filter(SPlist, DateOnlyField = DatePicker.SelectedDate)

where i selected 15/05/2026 inside the date picker and i got the above item, although in shrepoint it is stored as 14/05 and not 15/05... so where was the magic?
I have the same question (0)
  • Suggested answer
    WarrenBelz Profile Picture
    155,840 Most Valuable Professional on at
    There is no actual "magic" - a lot depends on the time zone of the SharePoint site and the local user device. If they are the same, there is no issue.
     
    What actually happens in the background is that the SharePoint database saves the actual UTC value of the date/time entered into the user's device. If the SharePoint site has a different Regional Setting, then viewing the data in a SharePoint View converts it to the Time Zone of the SharePoint site. Viewing it (or querying it) from Power Apps looks for the conversion to the time zone of the local device.
     
    Date only fields are converted to time 0:00 on the same date, so if the SharePoint site is behind the local machine, this will be sometime on the previous day.
    Example -
    • Local device UTC + 10 and SP Site UTC + 8
    • User saves a date 15/5/2026 0:00 in Power Apps
    • SP Database converts and stores to UTC 14/5/2026 14:00 (10 hours behind)
    • When displayed on SP Site View at + 8, converts to 14/5/2026 22:00 ( UTC + 8 - so you will see the day behind there)
    • When viewed in Power Apps at UTC + 10, comes back to 15/5/2026 0:00 (so you will see the correct day)
    I have this exact issue with a customer I have in Western Australia (UTC + 8) as I am in Queensland (UTC + 10)
     
    Please ✅ Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like ♥
    Visit my blog
    Practical Power Apps    LinkedIn  
  • johnjohnPter Profile Picture
    2,015 Season of Giving Solutions 2025 on at
    @WarrenBelz thanks for the great helpful reply, but i am still confused, in my case the  sharepoint site and local users' machine are the same UTC+3. so i am not sure how filtering the gallery using 15/05/2026 00:00 will get an item that is stored as 14/05/2026 21:00 ??? 
  • WarrenBelz Profile Picture
    155,840 Most Valuable Professional on at
    How are you looking at the data in SharePoint - the "back end" data storage is absolutely correct for UTC + 3  - as the UTC time conversion for the date stored is minus 3 hours. If you are looking at it from a Flow, then yes, you will see the "raw" UTC time and need to do a Time Zone Conversation element to get it back to what you need, however a SharePoint View should show the conversion based on the Regional Settings of the SharePoint site (one of mine below) - as should Power Apps for the user's device settings (which it is)
     
     
    So you might want to check this first.
     
    Please ✅ Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like ♥
    Visit my blog
    Practical Power Apps    LinkedIn  
  • johnjohnPter Profile Picture
    2,015 Season of Giving Solutions 2025 on at
    @WarrenBelz thanks again for the reply. i know that sharepoint list respect the site settings and power apps respect the user local settings... when i say that the value is atored as 14/05/2026 21:00 i am talking about how it is stored internally inside sharepoint and retrived using row api call _api/getlistbytitme/items(1)...
  • WarrenBelz Profile Picture
    155,840 Most Valuable Professional on at
    That is absolutely correct - the API call will retreive the "raw" UTC date/time from the SharePoint data storage, so what you are seeing is expected. If you really want to fix this, use AddHours in a Compose action after your API call in the Flow (example)
    addHours(outputs('Send_an_HTTP_request_to_SharePoint')?['body'],3)
    Please ✅ Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like ♥
    Visit my blog
    Practical Power Apps    LinkedIn  
  • johnjohnPter Profile Picture
    2,015 Season of Giving Solutions 2025 on at
    @WarrenBelz but back to my original question, how a value that is stored inside sharepoint as 14/05/2026 21:00 can be retrieved inside power apps using this formula:-
     

    Filter(SPlist, DateOnlyField = DatePicker.SelectedDate) // where selected date from the DarePicker is 15/05/2026?
     
     
    Thanks
  • WarrenBelz Profile Picture
    155,840 Most Valuable Professional on at
    Very simply - Power Apps uses the Regional setting of the local device when displaying the "raw" UTC date/time stored in SharePoint. So if the device is set at UTC + 3, Power Apps adds three hours to the SharePoint stored date/time (and gets it back to what it was set when it was stored). This is the reverse of when Power Apps is writing to the SharePoint data storage which is always at UTC, so if Power Apps is at UTC + 3, SharePoint takes off 3 hours, then stores it.
     
    So in simple terms:
    • Date picker (or however user sets it) selects 15/5/2026 (actually 2026-05-15 00:00with device at UTC + 3.
    • Saves to SharePoint as date/time UTC conversion 14/5/2025 21:00 ( 2026-05-14 21:00 ). This is what you see in the SharePoint backend storage and have to work with outside Power Apps or a SharePoint View.
    • You then query SharePoint from Power Apps using Filter(SPlist, DateOnlyField = DatePicker.SelectedDate).
    • Power Apps then adjusts this to UTC (so 2026-05-15 00:00 becomes 2026-05-14 21:00 ) and sends it to SharePoint, which then compares this and you get a match.
    As I mentioned earlier, if the SP site and Power Apps are the same Time Zone, it all works perfectly and you will not encounter any issues unless you are using dates in Power Automate (then all you need to do is convert it as I posted)
     
    Please ✅ Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like ♥
    Visit my blog
    Practical Power Apps    LinkedIn  
     
     
  • WarrenBelz Profile Picture
    155,840 Most Valuable Professional on at
    A quick follow-up to see if you received the answer you were looking for. Happy to assist further if not.
     
    Please ✅ Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like â™¥
    Visit my blog
    Practical Power Apps    LinkedIn   

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard