Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: datedif with days and hours? Post Reply Post New Topic
Author Message
jbalbo
Senior Member
Senior Member
Avatar

Joined: 17 Feb 2011
Online Status: Offline
Posts: 219
Quote jbalbo Replybullet Topic: datedif with days and hours?
    Posted: 08 Aug 2012 at 11:55am
Hi,
 
Does anyone know how I can do a datediff using datetime dates?
 
So if startdate is 1/1/12 01:00 and enddate is 1/2/12 002:00 then I want to display 1d 1hr(or something like that)
 
Thanks In Advance
 
Joe
 
 
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 08 Aug 2012 at 12:14pm
you have to datediff on the lowest level that you want to see and then use division formulas to convert that into the text that you want to see.
There a a number of examples posted around the site.


Edited by DBlank - 08 Aug 2012 at 12:15pm
IP IP Logged
Post Reply Post New Topic
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



This page was generated in 0.031 seconds.