cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Problem with DatePicker and saving back to SharePoint List

Hi all,

 

Seem to have come across a bug with the DatePicker and saving back to SharePoint lists. I'm using PowerApps Studio version 2.0.650. Further Details below:

 

  • Attempting to Patch a record to SharePoint Online List with a Date column.
  • If the column is set to "Date Only", and i simply use the elementName.SelectedDate property to patch back, consistently saving back as 1 day before the selected date.
  • However, if I set the column to be "Date and Time", and then patch with elementName.SelectedDate+Time(0,0,0) it will save to the correct date with a time stamp of 12:00am.
    • I'm trying to use this is as a workaround where possible, however, it's wrecking havoc on filtering by date functions throughout a bunch of apps.

Anyone else coming across a similar issue? What are your workarounds? or is this a bug at Microsoft's end?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Anonymous
Not applicable

Re: Problem with DatePicker and saving back to SharePoint List

Hi @v-micsh-msft, looks like the bug sorted itself out. Hadn't changed anything, after the weekend I tested my functions again, patching a selected date and time (without timeoffset) now saves it correctly.

View solution in original post

2 REPLIES 2
Highlighted
Community Support
Community Support

Re: Problem with DatePicker and saving back to SharePoint List

Hi @Anonymous,

 

Per my testing, DatePicker controls works at my side.

There used to be TimeZone issues when saving date value into SharePoint List, which I think should be fixed in PowerApps version 2.0.650.

Please verify the TimeZone settings under your SharePoint Site settings-> Regional settings, make sure the time zone is set to the same Local Time Zone as your machine.

There is no need to take use of timezoneoffset function here.

Let me know if this works for you.

 

Regards,

Michael

 

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Anonymous
Not applicable

Re: Problem with DatePicker and saving back to SharePoint List

Hi @v-micsh-msft, looks like the bug sorted itself out. Hadn't changed anything, after the weekend I tested my functions again, patching a selected date and time (without timeoffset) now saves it correctly.

View solution in original post

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,997)