I have a report that prompts for date range of startdate and enddate. once ran, it takes the starttime and endtime and calculates total time per day. however if somone works on the last day of the month, it needs to only calculate the time up til midnight for that current month. Here is what I currently have:
DateDiff("n",{SchedulerPersonnelViewDetails.StartTime},{SchedulerPersonnelViewDetails.EndTime})/60
But if someone works over midnight on the last day of the month, it adds those hours to the time sheet which, anything after midnight would go on next months pay or timesheet.
Any help is greatly appreciated

DateDiff("n",{SchedulerPersonnelViewDetails.StartTime},{SchedulerPersonnelViewDetails.EndTime})/60
But if someone works over midnight on the last day of the month, it adds those hours to the time sheet which, anything after midnight would go on next months pay or timesheet.
Any help is greatly appreciated
