Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Date Ranges Post Reply Post New Topic
Author Message
Ham on Rye
Newbie
Newbie


Joined: 04 May 2007
Location: United Kingdom
Online Status: Offline
Posts: 2
Quote Ham on Rye Replybullet Topic: Date Ranges
    Posted: 04 May 2007 at 2:36am
Hello all, 
 
I'm fairly new to Crystal Reports and need a little help on setting custom date ranges because the standard functions don't meet our business needs. 
 
The function 'last7days' allows me to view all new records created within that period.  However, I'd like to look at all new records created with the last fortnight. 
 
Could anyone please help?
 
Thank you.
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 04 May 2007 at 8:49am
To get the fortnight date, you will have to create your own custom date formula. You can use the DateAdd() function to modify a date by in various ways (add years, subtract days, add hours, etc.)  For example DateAdd("d", -14, CurrentDate) subtracts 14 days from today.
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
Ham on Rye
Newbie
Newbie


Joined: 04 May 2007
Location: United Kingdom
Online Status: Offline
Posts: 2
Quote Ham on Rye Replybullet Posted: 04 May 2007 at 8:56am
Legend.  Clap
 
Thank you very much for your help!!!! 
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.062 seconds.