Hello,
I am using Crystal 7.0 . Can anyone tell me how do i write th report selection criteria so it gets data only for the current full week (starting from sunday until now)
Here is one way:
{date.field}>=(currentdate-dayofweek(currentdate)+1)
"why it works"
If today were Thursday the 24th of July, it's day of week is 5. The formula subtracts 5 day resulting in Saturday the 19th then adds on to make it Sunday the 20th (this week)
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.