Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

last full week -- Saturday through Friday? 1

Status
Not open for further replies.

willz99ta

IS-IT--Management
Sep 15, 2004
132
US
Hi,

I am trying to have my selection query pull the last full week Saturday through Friday. Is there a way to do that?

Thanks,
Will
 
You could use:

{table.date} in minimum(lastfullweek)-1 to maximum(lastfullweek)-1

-LB
 
Nice. Thanks again LBass --- It's like having your own LBass Crystal Genie on this forum!
 
Actually this isn't the correct way to do this, since it won't work correctly on certain days. The Help section says so change the print date to do this, but you might be able to use the following:

{table.date} in currentdate - dayofweek(currentdate,7) - 6 to currentdate - dayofweek(currentdate,7)

...where the "7" designates the starting day of the week. You should test this to see if works as expected.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top