Joined: 04 May 2007
Location: United Kingdom
Online Status: Offline
Posts: 2
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.
Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
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>
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