Solved

Crystal Reports convert time

Posted on 2014-09-29
3
161 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 100

Accepted Solution

by:
mlmcc earned 500 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

760 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now