Solved

Date/Time Difference in Crystal Reports

Posted on 2010-09-01
3
730 Views
Last Modified: 2013-11-28
I'm creating a report in Crystal Reports XI in which I want to measure the difference (in hours) between two date/time scenarios. One issue is that I'd like to measure business hours only. The other issue is that the dates and times are currently in two different fields. I've used the date difference formula before, but I don't know how to work it for the above issues. Has anyone done this before?
0
Comment
Question by:badmanjack
[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
3 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 33579331
Herre is a formula to calculate the workdays
http://www.kenhamady.com/form01.shtml

Here is a formula for workhours
http://www.kenhamady.com/form13.shtml

mlmcc
0
 
LVL 19

Expert Comment

by:GJParker
ID: 33586067
Will you need to exclude weekends and holidays from the calculation ?
0
 
LVL 35

Expert Comment

by:James0628
ID: 33602128
 > The other issue is that the dates and times are currently in two different fields.

 Two different fields (in the same record), or two different _records_?

 Two different fields is the easy one, so I'm guessing that you really meant two different records.  How you handle that may depend on the structure of your data and report.  The simplest thing would probably be if you could change the data so that both datetimes were included in the same record (in two separate fields, of course).  For example, maybe create a view or use a CR command (a query that you create manually) that pulls the two datetimes into one record.

 James
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

738 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