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

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Unable to capture the time between clicking on the Add icon and submit a form

(0) ShareShare
ReportReport
Posted on by 1,787 Super User 2024 Season 1
I want to capture the time between clicking on the Add icon to add a new item and clicking on the submit button.
 
so inside the Add icon onselect i added this formula:-
 
Set(currentDatetime,Now());Navigate(FormsCRUD);
 
and i set the default value for the StartTime  (which is a datetime sharepoint field) to be :-
 
 
If(ThisItem.'Start Time'=Blank(),currentDatetime,ThisItem.'Start Time')
 
 
then inside the submit button i added this formula:-
 
 
Set(submitdatetime,Now());
SubmitForm(Level1Form);
ResetForm(Level1Form);
 
and i set the default value for the endtime (which is a datetime sharepoint field) to be :-
 
If(ThisItem.'End Time'=Blank(),submitdatetime,ThisItem.'End Time')
 
now if the time between the 2 dates is only 2 minutes, i will get the differences to be around 2.5 hours. starttime will be 11:36 pm while endtime will be 9 pm!! any advice?
Thanks
I have the same question (0)

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

Coming soon: forum hierarchy changes

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

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 724 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
SebS Profile Picture

SebS 239 Moderator

Last 30 days Overall leaderboard