Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Calculating business hours elapsed between two dates

Posted on 2004-08-25
3
Medium Priority
?
308 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 500 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

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…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

722 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