Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Crystal Reports convert time

Posted on 2014-09-29
3
Medium Priority
?
204 Views
Last Modified: 2014-09-29
Brain fried, easy one here..
If I have 5:30 in a time format in CR,  result of 2 time calculations (5 hours and 30 minutes)
hour can I convert that to 5.5 in number format.
0
Comment
Question by:BKennedy2008
  • 2
3 Comments
 
LVL 101

Accepted Solution

by:
mlmcc earned 2000 total points
ID: 40350352
Convert time to seconds then divide by 3600

It is a TIME field or a string?

mlmcc
0
 

Author Comment

by:BKennedy2008
ID: 40350370
It is a time field.
I am thinking maybe this...Trying it now...

Local numbervar NewH;
Local numbervar NewM;
NewH:= Hour(TotalTime);
NewM:= (minute(totalTime)/3600);
DecimalResult = HewH + NewM
0
 

Author Comment

by:BKennedy2008
ID: 40350389
I have it:
TotalInTime:= time((NewEndTime- EditStartTime));
local numbervar NewH;
Local numbervar NewM;

NewH:=Hour(TotalInTime);
NewM:=NewH + (Minute(TotalInTime)/60);

Thanks for pointing me in the right path
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

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
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 …
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

971 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