function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
gregj777gregj777 

Entering worked hours for employee timesheet

I am trying to build a timecard app in SF. Does anyone have a better solution for the following.

 

Pay Period Start: {DATE} User enters

Pay Period End: {DATE} User enter or I might have it auto calculate based on a 2-week pay period

 

Monday(wk1): {DATE} = Pay_Period_Start__c

Start time: ????? User enter a time ex. 9:00 AM. Also I want a default value to be 9:00 AM

End time: ???? Same as start time. Also want default to be 5:00 PM

TOTAL Monday Hours: End_Time - Start_Time

 

Any ideas on this? Is there a way of getting around making it easier for user enter time like 930 or 1700 and return ex. 9:00 am or 5:00 pm.