web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Patch Date to SharePoi...
Power Apps
Unanswered

Patch Date to SharePoint and Excel

(0) ShareShare
ReportReport
Posted on by 226 Moderator

I am sure this is a simple fix, but I am missing something.

I have a button that patches both a SharePoint list as well as an Excel file using the Now() function.

The SharePoint data is the current date and current system time, but Excel is being reported as UTC.

I have tried DateDiff(), TimeZoneOffset(), but I cannot seem to get the data inserted into Excel as needed in the current timezone format.

Thanks for any guidance.

Cheers

Categories:
I have the same question (0)
  • OdinDelToro Profile Picture
    407 on at

    Hello @Hack-7,

     

    You need to use a combination of DateAdd and TimeZoneOffSet. You can read about it in the official documentation in the section converting from UTC. As excel by default will be parsed for UTC you need to apply a formula DateAdd( yourdatetime, −TimeZoneOffset( yourdatetime ), TimeUnit.Minutes )

    Here is the official documentation   DateAdd, DateDiff, and TimeZoneOffset functions - Power Platform | Microsoft Learn

     

    Hope this helps clarify the doubt, let me know in case you're still facing an issue within it.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard