This could probably be refined more, but for SQL Server, and first day of
week set to Sunday -
declare @day_of_week int
declare @days_left_in_week int
declare @cut_off int
declare @next_day int
select @day_of_week = DATEPART(dw, GETDATE())
select @days_left_in_week = 7 - @day_of_week
select @cut_off = 6 -- Friday
select @next_day = 5 -- Thursday
if @day_of_week >= @cut_off
begin
select getdate() + @next_day + @days_left_in_week
end
else
begin
select getdate() + @next_day - @day_of_week
end
-- end if
Bob Lehmann
"Matt" <mw******@caldrywall.comwrote in message
news:11**********************@p10g2000cwp.googlegr oups.com...
I have a form field area that I need to always have display the
upcoming thursday date. ie. this week I would need the form field
area to display 3/1/2007. Then beginning on the Friday 3/2/07 i need
it start displaying 3/8/2007. any suggestions..