stormtrooper
Programmer
Hello. I need to select dates in the range of the current date and a future date (28 days from the current date).
Here's what I have now:
NumberVar Cmonth:= month({datefield});
NumberVar Cdate:= day({datefield});
NumberVar Cyear:= year({datefield});
NumberVar TmpMonth:= month(currentdate);
NumberVar TmpDate:= day(currentdate);
NumberVar TmpYear:= year(currentdate);
If (Cmonth = TmpMonth) and (Cdate = TmpDate) then
TmpYear - Cyear
That returns every year with the current date (ie.today's date). If I use
NumberVar TmpMonth:= month(currentdate+28);
NumberVar TmpDate:= day(currentdate+28);
NumberVar TmpYear:= year(currentdate+28);
then I get every year with the future date (ie.4 weeks from today's date)
Now all I need is all the dates between them as well.
I'm new to Crystal, so I need some help. Easy in Access though.
Thanks, stormtrooper
Here's what I have now:
NumberVar Cmonth:= month({datefield});
NumberVar Cdate:= day({datefield});
NumberVar Cyear:= year({datefield});
NumberVar TmpMonth:= month(currentdate);
NumberVar TmpDate:= day(currentdate);
NumberVar TmpYear:= year(currentdate);
If (Cmonth = TmpMonth) and (Cdate = TmpDate) then
TmpYear - Cyear
That returns every year with the current date (ie.today's date). If I use
NumberVar TmpMonth:= month(currentdate+28);
NumberVar TmpDate:= day(currentdate+28);
NumberVar TmpYear:= year(currentdate+28);
then I get every year with the future date (ie.4 weeks from today's date)
Now all I need is all the dates between them as well.
I'm new to Crystal, so I need some help. Easy in Access though.
Thanks, stormtrooper