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 / Trying to patch an exc...
Power Apps
Answered

Trying to patch an excel table and have date formatting issue

(0) ShareShare
ReportReport
Posted on by 22

When I patch to an excel worksheet, while testing during development all was fine.  As soon as I published the app the patch function is brining dates in the following format in excel:

2021-06-22T20:57:07.240Z

 

My code is this:

Patch(
TimeSheetData,
LookUp(
TimeSheetData,
NEWID exactin NewIDVal
),
{Stop: Now()}
)
);

 

Any thoughts on how to correct this issue?  It seems that it works sometimes, and then doesnt others.

 

Thanks,

 

Mike

 

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,382 Most Valuable Professional on at

    Hi @MikeNPD ,

    Dates , Power Apps and Excel . . . not the best combination. What you are seeing is UTC format. Try patching

    Text(Now(),"dd/mm/yyyy")

    or whatever your data format is.

     

    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.

  • MikeNPD Profile Picture
    22 on at

    Thanks, when I try that I see the following:

    MikeNPD_0-1624396847567.png

     

  • Verified answer
    WarrenBelz Profile Picture
    156,382 Most Valuable Professional on at

    @MikeNPD ,

    You need to change the format of your Excel to Text - here is a post with a solution.

    I am not an Excel user for many reasons - you might have a look at the video below

    WarrenBelz_0-1614034878386.png

    and dates (as I started my post) are problematic.

    You might consider going to SharePoint - most of these issues will go away.

     

    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.

  • MikeNPD Profile Picture
    22 on at

    Thanks for this, I did something similar by adding 2 new columns and formatting them as text, then pointing the patch function at those columns.  Seems like power apps was trying to force that formatting in.  This is working for now.  Thanks for the help.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 427 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard