Find in Crystal report 8.5 if a field ( a date field) is in range of current week or in a date 2 weeks before 3 weeks before

Hi There,
In Crystal report 8.5, I'm trying to find if a field in the report a date field is in range of current week or in a date 2 weeks before 3 weeks before or older

if {@ExpDate} > LastFullWeek then "Late Current Week"
else


if {@ExpDate} in LastFullWeek then "Late Last Week"
else
if {@ExpDate} in something for 2 weeks before  then "Late for  Last 2 Weeks"      ---- Not sure how to do this
else
if {@ExpDate} in something for 3 weeks before  then "Late Last 3 Weeks"      ---- Not sure how to do this
else
"Late more than 3 Weeks Ago"

Will appreciate if somebody can tell how to do 2 weeks and 3 weeks.
Thanks
SivasanAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mlmccCommented:
Try this

if {@ExpDate} > LastFullWeek then 
    "Late Current Week"
else if {@ExpDate} in LastFullWeek then 
    "Late Last Week"
else if {@ExpDate} >= Minimum(LastFullWeek) - 7 then
    "Late for  Last 2 Weeks"
else if {@ExpDate} >= Minimum(LastFullWeek) - 14 then
    "Late for  Last 3 Weeks"
else
    "Late more than 3 Weeks Ago"

Open in new window


mlmcc
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SivasanAuthor Commented:
Hi mlmcc,
Awesome, that works Thanks a million.
0
SivasanAuthor Commented:
Thanks a million...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.