Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculating Only After Hours & Weekend work

Status
Not open for further replies.

dugan22

Technical User
Sep 15, 2004
1
US
I need to show only after hour calls to our support people starting at 6 pm on a Friday and ending at 8 am Monday. Whats the best way to do this on a date-time field (OpenedOn)? I've been tooling around with setting the time for the 5,6,7 and 1 days but I seem to keep bringing in the wrong records. I need to show work that is done after the working week is over. Any advice would be appreciated


Mike
 
Try something like:

(
day({table.date}) in [6,1]
)
or
(
day({table.date}) = 5
and
hour({table.date}) >= 18
)
or
(
day({table.date}) = 2
and
hour({table.date}) <= 8
)

May be some difficulties with the Time function, I can't test right now, so some conversion there might be required.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top