Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Variance between date/time? Crystal 8.5 1

Status
Not open for further replies.

mdieckman

MIS
Nov 21, 2006
88
US
Lets say that I have a list of times in a report like so:

11/6/06 9:30 am
11/6/06 9:45 am
11/6/06 10:15 am
11/6/06 12:00 pm

Is it possible to tell the variance (difference) between the dates and times from the field and the record below it?

For example, is there a calculation that does this for me?

11/6/06 9:30 am
11/6/06 9:45 am 15 minutes
11/6/06 10:15 am 30 minutes
11/6/06 12:00 pm 105 minutes
 
Try:

datediff("n",previous({table.datetime}),{table.datetime})

-LB
 
Wow, thanks for the speedy reply. Worked like a charm!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top