cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Javargas
Level: Powered On

Change date format from Sharepoint

Hello, I am using SharePoint list as data source and in the list there are two date columns. When I insert them in the power app, the hour is different by two hours.

What I should see "13/05/2019 07:00" and what I am getting "13/05/2019 09:00".

Any help or suggestions on how to fomart that value would be great.

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Change date format from Sharepoint

Hi @Javargas 

 

Use

 

DateAdd( thisItem.DateA, TimeZoneOffset(), Minutes )

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

3 REPLIES 3
Super User
Super User

Re: Change date format from Sharepoint

Hi @Javargas 

 

PowerApps always shows results in utc format

SharePoint also shows data in UTC format but when displayed converts it to local time zone

 

https://toddbaginski.com/blog/working-with-local-and-utc-dates-and-times-in-powerapps/

 

https://sharepoint.stackexchange.com/questions/256813/powerapps-date-only-field-showing-wrong-date-b...

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Javargas
Level: Powered On

Re: Change date format from Sharepoint

Thanks for the reply, but I do not see how to implement this.

I have a label in wich the text property is "thisItem.DateA", how do I modify it? Thanks

Super User
Super User

Re: Change date format from Sharepoint

Hi @Javargas 

 

Use

 

DateAdd( thisItem.DateA, TimeZoneOffset(), Minutes )

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 287 members 3,530 guests
Please welcome our newest community members: