G
Guest
HI I have a stored procedure that returns data with a date field in the form
of a DateTime type. I need to place data in variables based on days of the
week starting with the first thursday of the month. So the week would be
week 1= (first thursday of the month through the next wed). So for example
for July 07 the first thursday is july5th so the first week would be thursday
july 5th , friday july 6th, sat july 7th, sun july 8th, mon july 9th, tue
july 10th and wed july 11th. The second week would start with thursday july
12. I think I can do this if I can just get the first thursday of the month
of the date that is read in but not quite sure how to do this? I am also
passing in the day of the week string (mon, tue) ect from the same stored
procedure.
Thanks Paul.
of a DateTime type. I need to place data in variables based on days of the
week starting with the first thursday of the month. So the week would be
week 1= (first thursday of the month through the next wed). So for example
for July 07 the first thursday is july5th so the first week would be thursday
july 5th , friday july 6th, sat july 7th, sun july 8th, mon july 9th, tue
july 10th and wed july 11th. The second week would start with thursday july
12. I think I can do this if I can just get the first thursday of the month
of the date that is read in but not quite sure how to do this? I am also
passing in the day of the week string (mon, tue) ect from the same stored
procedure.
Thanks Paul.