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 :
Power Platform Community / Forums / Power Apps / Date Issues with Share...
Power Apps
Unanswered

Date Issues with SharePoint List as Data Source

(0) ShareShare
ReportReport
Posted on by 244
I built a SharePoint custom form in PowerApps and it includes several date fields. The selected date is off by -1 in the SharePoint list after submitting. The date field is date only (no time) and I have tried Text(DateValue(Control.SelectedDate), "yyyy-mm-dd") in the Update field of the card. It does not fix anything. I've tried DateAdd(DateValue(Control.SelectedDate), TimeZoneOffset(), TimeUnit.Minutes) (suggested by CoPilot) which also did not work. Trying a negative offset shifts the date in the wrong direction (-2 days instead of -1). I'm at a loss. 
 
Anyone experience this and know how to solve it?
Categories:
I have the same question (0)
  • Suggested answer
    Garima_PowerPlatform Profile Picture
    170 on at
    Date Issues with SharePoint List as Data Source
     

    Hi,

    1. Check the Date Format in PowerApps

    Ensure that the date value is correctly formatted before submitting to SharePoint. Here’s a step-by-step approach:

    a. Use the Date Function

    Instead of directly manipulating the date, use PowerApps' Date() function to format the selected date correctly.

    Date(Control.SelectedDate)

    Then, submit this to SharePoint.

    b. Update Date Field in SharePoint

    Use the following formula to update the SharePoint list with the correctly formatted date:

    Patch(
    'Your SharePoint List',
    LookUp('Your SharePoint List', ID = YourRecordID),
    {
    YourDateField: Date(Control.SelectedDate)
    }
    )

    2. Ensure Correct Time Zone Handling

    PowerApps uses UTC, and sometimes this could cause issues. You can try:

    • Adjusting the Time Zone Offset by using:

      DateAdd(Date(Control.SelectedDate), TimeZoneOffset(), Minutes)

      However, use this only if needed. If it shifts the date in the wrong direction, then avoid this method.

    3. Alternative Approach

    Another method is to avoid manual offset handling altogether and ensure the date is submitted directly without adjustments:

    Date(Control.SelectedDate)

    Then submit this value directly to SharePoint without any further transformations.

     
     
    Please click 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 giving it a Like.
  • CCJones Profile Picture
    244 on at
    Date Issues with SharePoint List as Data Source

    Thanks for the response! the Date() function doesn't work. I updated the Update function on the card to the code below.
    Date(Year(Control.SelectedDate), Month(Control.SelectedDate), Day(Control.SelectedDate))
    I then changed the date in the form to 17 January, 2025 and the value in the SharePoint list is 16 January, 2025. Makes no sense. 
     
    I'm really hoping not to have to patch them all. Really not ideal. 

    The TimeZoneOffset option doesn't work either. Same thing as above. Always a day off. If I do a negative offset, it shifts to -2 days instead of -1. But a positive offset remains at -1. 

    A bit of additional info that I am not sure is relevant or not. I am located in PST while the site I am working in is in CST. Going to adjust my laptop time zone to CST and see if that makes any difference. Somehow I don't think it will. 
     
    I had another user test the solution and their dates come out correct. They are located in Japan, however. Going to have some local users test as well. 
     
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard