I want to set a date that would pull information for the prior week.
Never enough time to do the job right, but always enough time to do the job over.
June 23rd, 2011 3:40pm

Hi, Can you please provide more details? The following would give you the first and last day of prior week. select dateadd(wk, datediff(wk, 0, getdate()) - 1, 0), dateadd(wk, datediff(wk, 0, getdate()) - 1, 0) + 4 Is that what you want?
Free Windows Admin Tool Kit Click here and download it now
June 23rd, 2011 4:02pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics