Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: How to find difference between two dates Post Reply Post New Topic
Author Message
anbu
Newbie
Newbie


Joined: 21 Feb 2008
Location: United Kingdom
Online Status: Offline
Posts: 1
Quote anbu Replybullet Topic: How to find difference between two dates
    Posted: 21 Feb 2008 at 8:33am
Hello thre,

I am in the hunt of getting a correct formula to calculate the difference between two dates. does anyone out there know about it? the logic is to find 'if the diference  between two dates is more then two years or less?' Any idea will be helpful.

Cheers!
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 21 Feb 2008 at 6:09pm
Use the DateDiff() function. The first paramter is the interval ("d" for days or "yyyy" for years) and the next two parameters are the dates you want to work with.

I discuss the date functions in Chapter 6 of my book Crystal Reports Encyclopedia.
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
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.020 seconds.