waldopepper
Programmer
Can anyone help us with a bit of code -
I want to determine the most recent friday (previous) to a supplied date in a stored procedure.
So if I a date (e.g. 15th June 2005), I need the stored procedure to return most recent previous Friday's date (10th June 2005) - all in datetime format.
I can probably work this out in a cursor but this might get long-winded and wondered if there's a simpler way I'm not thinking of.
Can anyone help?
thanks
w
I want to determine the most recent friday (previous) to a supplied date in a stored procedure.
So if I a date (e.g. 15th June 2005), I need the stored procedure to return most recent previous Friday's date (10th June 2005) - all in datetime format.
I can probably work this out in a cursor but this might get long-winded and wondered if there's a simpler way I'm not thinking of.
Can anyone help?
thanks
w