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 / Timer App - Dates in S...
Power Apps
Unanswered

Timer App - Dates in SharePoint issue

(0) ShareShare
ReportReport
Posted on by

Building a Time Tracker App and when I run it the data goes back to my data source (SharePoint List) but the Date/Time columns for the Start and End are showing the exact same time despite waiting a few minutes after pressing the Start button in the App. Trying to record the difference between the two times, which I have done successfully using a calculated column but the results come up 0 because the start and end times are reading the same.

=INT(([End Time]-[Start Time])*1440) Works out duration times and this seems to be working.

 

My Patch Function.

Patch('Direct Observations',Defaults('Direct Observations'),{'Activity / Element':DataCardActivity.Text,'Waste Type':DataCardWaste.Selected,'Type (VA/SA/W)':DataCardType.Selected,'Comments/ Issues/ Opportunities for Improvement & General Observations':DataCardComment.Text});

 

UpdateContext({Reset: true});

Reset (Timer1_1);UpdateContext({Reset: false});

ResetForm(Form3);

NewForm(Form3)

 

I was including the Start and End button Now () formula in the Patch function but it was returning the same value in both columns.

Can someone help me?

 
Screenshot 2024-12-16 120447.png
Categories:
  • ronaldwalcott Profile Picture
    3,914 Moderator on at
    Where are you initiating the times? If in the buttons are you using something like
    UpdateContext({StartTime: Now()}) in the Start and UpdateContext({EndTime: Now()}) in the Stop then calculating the difference using DateDiff
     
    Show some more details on your calculation

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard