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
Dual Super User
Dual 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
Dual Super User
Dual 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

Dual Super User
Dual 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
thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 355 members 5,834 guests
Please welcome our newest community members: