Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Date difference using previous function Post Reply Post New Topic
Author Message
brent21090
Newbie
Newbie


Joined: 20 Apr 2009
Online Status: Offline
Posts: 31
Quote brent21090 Replybullet Topic: Date difference using previous function
    Posted: 03 Jan 2013 at 9:47am
 
I am trying to figure the date and time difference between two dates. For example the 1st date & time is "12/4/2012 9:10:00AM" 2nd date "12/4/2012 10:10:00AM
These dates are in chronological order and the dates and times change. I am trying to figure out the difference in times and then get an average of time given a specific time period.
 
I was going the path of using a formula below and that is returning negative minutes.
 
DateDiff ("n", {schedule.app_dttm}, previous({schedule.app_dttm})
 
Thanks for the help.
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 04 Jan 2013 at 7:54am
Are the date times sequential through the whole report or within groups of data?  If within groups, how is your data grouped?
-Dell
IP IP Logged
brent21090
Newbie
Newbie


Joined: 20 Apr 2009
Online Status: Offline
Posts: 31
Quote brent21090 Replybullet Posted: 08 Jan 2013 at 4:14am
The Dates are sequential through the whole report.

Edited by brent21090 - 08 Jan 2013 at 4:15am
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.063 seconds.