Solved

Calculating business hours elapsed between two dates

Posted on 2004-08-25
3
302 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

860 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