Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Patch Date to SharePoint and Excel

(0) ShareShare
ReportReport
Posted on by 216 Super User 2025 Season 1

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:
  • OdinDelToro Profile Picture
    407 on at
    Re: Patch Date to SharePoint and Excel

    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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,708 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,030 Most Valuable Professional

Leaderboard