Solved

Calculating business hours elapsed between two dates

Posted on 2004-08-25
3
299 Views
Last Modified: 2012-08-13
I have two dates coming in from a database that I need to calcuate the total elapsed business hours from. The rules would be only 8-5 hours on Monday through Friday would be counted. So for example if I have a start time and date of 7/10/2003 at 2:49:15pm and a end time of 7/25/2003 at 4:16:57 pm (both of these are datetime values), I should get something like 89:37 as the result. I have tried using datediff and excluding the weekend days, which is closer, but does not exclude the non-working hours.

Thanks!
Ken
0
Comment
Question by:kabaker55
  • 2
3 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 125 total points
ID: 11897487
0
 
LVL 10

Expert Comment

by:ebolek
ID: 11899638

go to here and search for businessdays.zip
http://support.crystaldecisions.com/downloads

You will find the ufl for calculating business days and how to do it

Regards
Emre
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 11909022
Glad I could help

mlmcc
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now