projecttoday
Programmer
I have 3 fields, all defined as Date/Time fields:
startdateandtime
enddateandtime
lunchtime
I am trying to calculate the enddateandtime minus the startdateandtime minus the lunchtime.
This much works:
DateDiff("h",startdateandtime,enddateandtime)
But I also need to deduct the lunchtime. How do I do this?
Additional info:
A date and time are stored in startdateandtime and enddateandtime. Only a time is stored in lunchtime. I am using a format of short time for lunchtime and this seems to work for displaying a lunch time. This is a time such as 0:30 (30 minutes), 1:00 (an hour), etc.
startdateandtime
enddateandtime
lunchtime
I am trying to calculate the enddateandtime minus the startdateandtime minus the lunchtime.
This much works:
DateDiff("h",startdateandtime,enddateandtime)
But I also need to deduct the lunchtime. How do I do this?
Additional info:
A date and time are stored in startdateandtime and enddateandtime. Only a time is stored in lunchtime. I am using a format of short time for lunchtime and this seems to work for displaying a lunch time. This is a time such as 0:30 (30 minutes), 1:00 (an hour), etc.