I'm trying to run a report that select all records from two Sundays ago (regardless of what day today is). I can't seem to figure this one out. I'd appreciate any help anyone has!
The following formula will show two Sundays back. For today's date it will show January 12. If the date is a Sunday, it will show the previous Sunday. Jan 19 gives Jan 12.
then use the formdatevar d:={date.field};
datevar sunday;
datevar twosunprev;
sunday:=d-dayofweek(d)+1;
twosunprev:=date(dateadd("ww",-1,sunday))
Mike
If you're not part of the solution, you're part of the precipitate.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.