473,513 Members | 2,399 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CrystalReport Time Diff

Hello Everyone
Sorry but my English is very littel.
In my application I use Crystal Reports. On report I have (in one row) to
dateTime. How in 3th column calculate difftime beetwen this value and
dispaly in format (hh:mm:ss).
Now a use DateDiff functiona but I have wrong format.

Thx for yours help
PawelR
Nov 17 '05 #1
4 2574
Pawel,

You'll have to program a bit using Crystal Reports formula language. First
use DateDiff to obtain the difference between the two dates IN SECONDS, then
use arithmetic formulas in order to obtain the number of days, hours,
minutes and seconds in the difference, and finally build a string in the
format "20 04:15:05" with the temporary variables obtained.

Regards - Octavio

"PawelR" <pa************@poczta.onet.pl> escribió en el mensaje
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hello Everyone
Sorry but my English is very littel.
In my application I use Crystal Reports. On report I have (in one row) to
dateTime. How in 3th column calculate difftime beetwen this value and
dispaly in format (hh:mm:ss).
Now a use DateDiff functiona but I have wrong format.

Thx for yours help
PawelR

Nov 17 '05 #2
Thx Octavio,
but I don't quite shure that this is good way. If I use your solution I have
in 3th column string value. If I have string I propabylity can't use
agregate function sum().
Ever rows in first column have start time, second end time and 3th diff
time. On the end my reports I must show total time in job.

Użytkownik "Octavio Hernandez" <do****@danysoft.com> napisał w wiadomości
news:%2****************@TK2MSFTNGP10.phx.gbl...
Pawel,

You'll have to program a bit using Crystal Reports formula language. First
use DateDiff to obtain the difference between the two dates IN SECONDS,
then use arithmetic formulas in order to obtain the number of days, hours,
minutes and seconds in the difference, and finally build a string in the
format "20 04:15:05" with the temporary variables obtained.

Regards - Octavio

"PawelR" <pa************@poczta.onet.pl> escribió en el mensaje
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hello Everyone
Sorry but my English is very littel.
In my application I use Crystal Reports. On report I have (in one row) to
dateTime. How in 3th column calculate difftime beetwen this value and
dispaly in format (hh:mm:ss).
Now a use DateDiff functiona but I have wrong format.

Thx for yours help
PawelR


Nov 17 '05 #3
Pawel,

Make the 3rd column with the difference in seconds, and make it invisible
(Supress). You can sum that column easily. And then at the end of the report
use the formula to present the sum as a string " hh:mm:ss", right below the
4th column, which shows the "hh:mm:ss" for every job..

Regards - Octavio
"PawelR" <pa************@poczta.onet.pl> escribió en el mensaje
news:eB**************@TK2MSFTNGP15.phx.gbl...
Thx Octavio,
but I don't quite shure that this is good way. If I use your solution I
have in 3th column string value. If I have string I propabylity can't use
agregate function sum().
Ever rows in first column have start time, second end time and 3th diff
time. On the end my reports I must show total time in job.

Użytkownik "Octavio Hernandez" <do****@danysoft.com> napisał w wiadomości
news:%2****************@TK2MSFTNGP10.phx.gbl...
Pawel,

You'll have to program a bit using Crystal Reports formula language.
First use DateDiff to obtain the difference between the two dates IN
SECONDS, then use arithmetic formulas in order to obtain the number of
days, hours, minutes and seconds in the difference, and finally build a
string in the format "20 04:15:05" with the temporary variables obtained.

Regards - Octavio

"PawelR" <pa************@poczta.onet.pl> escribió en el mensaje
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hello Everyone
Sorry but my English is very littel.
In my application I use Crystal Reports. On report I have (in one row)
to dateTime. How in 3th column calculate difftime beetwen this value and
dispaly in format (hh:mm:ss).
Now a use DateDiff functiona but I have wrong format.

Thx for yours help
PawelR



Nov 17 '05 #4
Thx Octavio,
Could you help me? I don't know how present the sum as string "hh:mm:ss".

Pawel
Użytkownik "Octavio Hernandez" <do****@danysoft.com> napisał w wiadomości
news:OH*************@TK2MSFTNGP15.phx.gbl...
Pawel,

Make the 3rd column with the difference in seconds, and make it invisible
(Supress). You can sum that column easily. And then at the end of the
report use the formula to present the sum as a string " hh:mm:ss", right
below the 4th column, which shows the "hh:mm:ss" for every job..

Regards - Octavio
"PawelR" <pa************@poczta.onet.pl> escribió en el mensaje
news:eB**************@TK2MSFTNGP15.phx.gbl...
Thx Octavio,
but I don't quite shure that this is good way. If I use your solution I
have in 3th column string value. If I have string I propabylity can't use
agregate function sum().
Ever rows in first column have start time, second end time and 3th diff
time. On the end my reports I must show total time in job.

Użytkownik "Octavio Hernandez" <do****@danysoft.com> napisał w wiadomości
news:%2****************@TK2MSFTNGP10.phx.gbl...
Pawel,

You'll have to program a bit using Crystal Reports formula language.
First use DateDiff to obtain the difference between the two dates IN
SECONDS, then use arithmetic formulas in order to obtain the number of
days, hours, minutes and seconds in the difference, and finally build a
string in the format "20 04:15:05" with the temporary variables
obtained.

Regards - Octavio

"PawelR" <pa************@poczta.onet.pl> escribió en el mensaje
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hello Everyone
Sorry but my English is very littel.
In my application I use Crystal Reports. On report I have (in one row)
to dateTime. How in 3th column calculate difftime beetwen this value
and dispaly in format (hh:mm:ss).
Now a use DateDiff functiona but I have wrong format.

Thx for yours help
PawelR



Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
12318
by: NotGiven | last post by:
Below is a good elapsed time function I found. However, I'd like to return total seconds instead of broken down into days, hours, minutes & seconds. In other words, I want "125" instead of "2...
2
3692
by: Alberto Santini | last post by:
I ported a Jos Stam's demo about Fluid mech to check the difference of speed between C implementation and Python. I think I achieved good results with Python and there is space to improve, without...
0
1590
by: s-galit | last post by:
hi, i have a formula parameter in my crystalReport how can i initalize the parameter so that in every line in the crystalReport the parameter will have a different string? how to get to line in...
2
1949
by: Vlatko | last post by:
I have made a simple application in C# that prints a txt file using CrystalReport. On my PC everything works fine but when I run my app on another PC it collapses. I get message: "Cannot find...
3
15512
by: redneon | last post by:
I've populated a DataSet in my C# program and verified that it contains the data I passed it. I've then created a blank CrystalReport and set it's DataSource to my DataSet. Then I created a...
2
8466
by: Don Wash | last post by:
Hi All! I've been searching everywhere for a simple sample of producing a bar graph using CrystalReport by specifying SQL Query, and I've found none of it! I find so many complex samples with so...
0
1561
by: agcabutotan | last post by:
Hi to everyone. I am new in this thread, please help me. I'm having difficulty with CrystalReport.Net. I have a completed project written and compiled in VB.Net (and I used CrystalReport.Net in...
6
2420
by: Jeremy Sanders | last post by:
Hi - I need to add support to a program for dates and times. The built-in Python library seems to be okay for many purposes, but what I would like would be Unix epoch style times (seconds relative...
9
8283
by: Ron Adam | last post by:
I'm having some cross platform issues with timing loops. It seems time.time is better for some computers/platforms and time.clock others, but it's not always clear which, so I came up with the...
0
7264
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7543
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7106
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7534
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5094
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4749
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3226
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1601
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
805
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.