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 / Timesheet tracker Date...
Power Apps
Unanswered

Timesheet tracker Date and Time

(0) ShareShare
ReportReport
Posted on by

Currently working on the Timesheet tracker by @RandyHayes . I have questions regarding dates:

  • How will it not reset the check in for the day? For example, my check in time is 9PM (July 7) then my check out should be 6AM (July 8). I would like the logic to be Check In shouldn't be available unless Check out has been clicked.
  • How can I add computation of hours? Check Out minus Check In. This is to get the rendered hours of the individual.
Categories:
  • Sunil-Narnaware Profile Picture
    681 on at

    @biancadevera how are you capturing Check In and Check Out? What's the action?

    And for computation of hours use below formula.. replace with appropriate values for check in & check out..

    DateDiff( DateTimeValue('Check In DateTime Value'), DateTimeValue('CheckOut Date Time Value'),Hours)

     

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @biancadevera 

    The sample Time Tracker app you are following was only intended to track daily times, not times that would cross the day boundary (i.e. 12 AM)

    You could implement an offset time on all of your calculations, to account for the day boundary, but it is a challenge to do.  

    So, in other words, the architecture of that app was very specific to just a day.  It would need to be adjusted completely for different periods of time.

    As for the hour calculations, some years ago I replied to someone on this forum with an app that does summing of all the people and hours from the app.  I'd hunt it down, but I feel it might not be worth it in this case since you really need to address non-day boundaries for check in/out.

  • biancadevera Profile Picture
    on at

    Hi @RandyHayes 

     

    Thanks for the response. Could you please give me an example on how I could offset time? I'm also looking into possibility of multiple check ins/outs per day for employees who have flexible time. Would this be a challenge as well?

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @biancadevera 

    Well, the reality is, since you want not only that but also the multiple check ins and outs, that the architecture of that app is not really going to work for you.

    What I would recommend is to restructure it to always work with the LAST record recorded for the user that does NOT have a check out time in it - or a new one if none exists.

    The app was designed to do more of a record per day per user.  So with the above concept, you would instead have a record per check in/check out per user and the day is not relevant.

    That would give you the multiple check in/out ability and also cover the check out on another day.

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