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 / Date Picker saving dat...
Power Apps
Unanswered

Date Picker saving date as previous date in SharePoint.

(0) ShareShare
ReportReport
Posted on by 309

I have a PowerApp form that submits form to a SP list. The fields are a date & time field in SharePoint. The dates are being saved as the previous dates form what is selected. How do I fix this ?? tried changing the time zone to 

DateTimeZone.UTC

 but it is not working.

 

Please Help,

Thank in advance. 

Categories:
I have the same question (0)
  • PowerAddict Profile Picture
    7,316 Most Valuable Professional on at

    Are you storing just the date value or date time value? Is it always a day behind? And do you want to save the date (or date/time) in UTC or user's local time?

     

    ---
    If you like this reply, please give kudos (Thumbs Up). And if this solves your problem, please mark this reply as a solution by selecting Accept as Solution. This makes it easier for others to find answers to similar questions. 

     

    Thanks!

    Hardit Bhatia

    Blog | Twitter | LinkedIn | Facebook | YouTube  |  Email

  • DaynaBee Profile Picture
    309 on at

    @PowerAddict 

    HI Hardit Thank you for the quick response.

     

    I am trying to store the date entered in the form , it is always a day behind ( so far) and i tried UTC to resolve the issue ( i dont have to use UTC ). 

    I just want it to reflect the date picked on the form . 

     

    Thanks, 

     

     

  • PowerAddict Profile Picture
    7,316 Most Valuable Professional on at

    I tried UTC and it displayed previous day's date. When I changed to local, it worked fine for me. 

     

    Let me know if it does for you. If not, we may have to convert time zones explicitly. It boils down to whether you want the date to adapt based on user's time zone. 4/9 for me may not be 4/9 for you. So if I pick 4/9 what do you expect to see, 4/9 or 4/8?

     

    ---
    If you like this reply, please give kudos (Thumbs Up). And if this solves your problem, please mark this reply as a solution by selecting Accept as Solution. This makes it easier for others to find answers to similar questions. 

     

    Thanks!

    Hardit Bhatia

    Blog | Twitter | LinkedIn | Facebook | YouTube  |  Email

  • DaynaBee Profile Picture
    309 on at

    It was local and tried UTC too. I even created another app from inside the list and it shows same behavior, once i change it to date and time . Making the field just date again doesn't help, once it starts saving dates as the day before it keeps doing it despite the fact that the field is set to date instead of date & time.  

  • PowerAddict Profile Picture
    7,316 Most Valuable Professional on at

    May not be too relevant, but what happens when you set the default property of the date picker to Today()?

     

    ---
    If you like this reply, please give kudos (Thumbs Up). And if this solves your problem, please mark this reply as a solution by selecting Accept as Solution. This makes it easier for others to find answers to similar questions. 

     

    Thanks!

    Hardit Bhatia

    Blog | Twitter | LinkedIn | Facebook | YouTube  |  Email

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Yemata :

    I guess the reason you encountered this problem may be:

    The list save time as UTC time by default.

    PowerApps load time as local time by default.

    So when PowerApps load time, it will transfer to local time zone automatically.

    In order to solve the problems mentioned above, I suggest you save local time to SPlist and load time in PowerApps as local time too.    //make time zone the same.

    Iv made a similar test for your reference:

    Step1:Set the Default of the Date DATA CARD (not the Default on the Date picker) to

     

     

    DateAdd(ThisItem.Date,TimeZoneOffset(),Minutes)

     

     

    Step2:Make sure the Date time zone properties of the date picker control is Local

     

    1.png

     

    Step3(If you want to update the date):Set the Update of the Date DATA CARD (not the Default Date on the Date picker) to

     

     

    DateAdd(DateValue10.SelectedDate,-TimeZoneOffset(),Minutes)

     

     

     

    2.png

    Best Regards,

    Bof

  • DaynaBee Profile Picture
    309 on at

    @v-bofeng-msft  Bof thank you for looking in to this.

     

    I will try it and get back to you 

  • hgeorge Profile Picture
    4 on at

    This solutions worked for me. I was having the issue that the date was saved 1 Day behind the selected date. Adding the +/-TimeZoneOffset() to the respective DataCard solved my issue. 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 377 Most Valuable Professional

#2
11manish Profile Picture

11manish 165 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 110 Super User 2026 Season 2

Last 30 days Overall leaderboard