Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Convert Time to Decimals Post Reply Post New Topic
Author Message
Josh
Newbie
Newbie
Avatar

Joined: 17 Aug 2010
Location: United States
Online Status: Offline
Posts: 2
Quote Josh Replybullet Topic: Convert Time to Decimals
     Posted: 18 Aug 2010 at 7:49am
How do i convert Time to Decimals.  for example 8.00-4.30 is coming up as 8.30 as opposed to 8.5hours, thanks
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 19 Aug 2010 at 10:26am

Assuming the formula to subtract the time is called {@Time}, try something like this:

truncate({@Time}) + (({@Time} - truncate({@Time}))/60)
 
-Dell
IP IP Logged
Josh
Newbie
Newbie
Avatar

Joined: 17 Aug 2010
Location: United States
Online Status: Offline
Posts: 2
Quote Josh Replybullet Posted: 19 Aug 2010 at 10:31am
Thanks a million...I will try it right away, thanks
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum