Link to home
Start Free TrialLog in
Avatar of Maliki Hassani
Maliki HassaniFlag for United States of America

asked on

Crystal date Range Modification for 2 weeks

Experts,

How can I modify my query to lpull data for the last two weeks, instead of only 1 week.  Needs to still be from Monday - Sunday intervals.

Here is what I have that is for the LAST week.
{Command.UDF_CONVERT_UNIX_DATETIME(MX.DATE_CREATED,'US/EASTERN')} in CDate(dateadd("d",1,minimum(LastFullWeek))) to CDate(dateadd("d",1,maximum(LastFullWeek)))
Avatar of Maliki Hassani
Maliki Hassani
Flag of United States of America image

ASKER

I went with -7..  Will this work all the time?

{Command.UDF_CONVERT_UNIX_DATETIME(MX.DATE_CREATED,'US/EASTERN')} in CDate(dateadd("d",1,minimum(LastFullWeek)))-7 to CDate(dateadd("d",1,maximum(LastFullWeek)))
ASKER CERTIFIED SOLUTION
Avatar of vasto
vasto
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Very Nice, thanks!