Solved

Calculating business hours elapsed between two dates

Posted on 2004-08-25
3
306 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 101

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 101

Expert Comment

by:mlmcc
ID: 11909022
Glad I could help

mlmcc
0

Featured Post

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

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…
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…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

627 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