Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Technical Questions
Message Icon Topic: Help with DateAdd Post Reply Post New Topic
Author Message
Annette
Newbie
Newbie


Joined: 25 Jul 2011
Online Status: Offline
Posts: 13
Quote Annette Replybullet Topic: Help with DateAdd
    Posted: 25 Jul 2011 at 2:02am
Hello,

I need to create a selection formula to ensure a database date is in one month and 8 days before a parameter date. I know the formula for getting these options separately. i.e.Dateadd("m",-1,(?StartDate) and (dateadd("d",-8,(?StartDate) but how do I combine these

Thanks in advance
Annette
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 25 Jul 2011 at 4:04am
one option is dateserial
dateserial(year({?startdate}),month({?startdate})-1,day({?startdate})-8)
IP IP Logged
Annette
Newbie
Newbie


Joined: 25 Jul 2011
Online Status: Offline
Posts: 13
Quote Annette Replybullet Posted: 25 Jul 2011 at 9:05am
Now why didn't I think of that, just had a panic and a mind block obviously.

Thank you so much for your help

Annette
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.031 seconds.