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 / Difference in Datetime...
Power Apps
Answered

Difference in Datetime when saving to SharePoint list

(0) ShareShare
ReportReport
Posted on by 83

I collect Date and Time by DatePicker and Dropdowns:

ervinw_0-1704981646969.png

When I save this to a SharePoint list:

 

Set(var_occurence;DateTimeValue(DatePicker2.SelectedDate +
Time(Value(drpHour.Selected.Value);Value(drpMinute.Selected.Value);0)));;

Patch(Oktatas_alkalom;Defaults(Oktatas_alkalom);{Title:"Teszt";Oktatas_azonosito:cbbEducation_3.Selected.'Azonosító ({Identifier})';Időpont:var_occurence});;

 

 I have a total different result:

ervinw_1-1704981787540.png

Do you have any idea, what can cause this issue; how to solve this?
Thank you, Ervin

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    155,240 Most Valuable Professional on at

    Hi @ervinw ,

    You can save yourself a Variable as below, but that is not your issue. Have you done a number of different date/times to see if there is a consistent difference (in time) between your selection and the result ? One item I noticed was that you are using European syntax, yet your SharePoint data format is mm/dd/yyyy which is only USA, so what are the Regional Settings on your SharePoint server ?

    With(
     {
     _occurence;
     DateTimeValue(
     DatePicker2.SelectedDate +
     Time(
     Value(drpHour.Selected.Value);
     Value(drpMinute.Selected.Value);
     0
     )
     )
     },
     Patch(
     Oktatas_alkalom;
     Defaults(Oktatas_alkalom);
     {
     Title: "Teszt";
     Oktatas_azonosito: cbbEducation_3.Selected.'Azonosító ({Identifier})';
     Időpont: _occurence
     }
     )
    );;

     

  • ervinw Profile Picture
    83 on at

    I don't know, I have only found my settings here:

    https://myaccount.microsoft.com/settingsandprivacy/language
    Which is Hungarian, similarly like DatePicker's local setting.

     

    (If I store the date as Text, then it's fine.)

  • Verified answer
    Hasrie Profile Picture
    202 on at

    Hi @ervinw the regional setting is in the sharepoint, not under your user account. Check under the "Oktatas_alkalom" Sharepoint > Gear icon > Site Information > Site Settings > View All Site Setting > Regional Setting > Check under TimeZone and Region / Locale

  • ervinw Profile Picture
    83 on at

    Just found it, it was Pacific... :), not Hungarian

  • WarrenBelz Profile Picture
    155,240 Most Valuable Professional on at

    @ervinw ,

    Exactly what I suspected - and Pacific is the most extreme as far as behind UTC. What you are seeing is actually correct as far as the SharePoint Server is concerned.

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 762

#2
11manish Profile Picture

11manish 640

#3
Valantis Profile Picture

Valantis 548

Last 30 days Overall leaderboard