心情好,写了个函数给你,呵呵<br>自己定义函数:<br>CREATE FUNCTION GetMonday(@year int,@WeekNo int) <br>RETURNS datetime <br> AS <br>begin<br>declare @Mindate datetime,@Maxdate datetime<br>declare @Monday datetime<br>select @Mindate=convert(datetime,convert(varchar(4),@year)+'-1-1')<br>select @Maxdate=convert(datetime,convert(varchar(4),@year)+'-12-31')<br>while @Mindate<=@Maxdate<br>begin<br> if (SELECT DATENAME(week,@Mindate))=@WeekNo<br> begin<br> SELECT @Monday=(SELECT DATEADD(wk, DATEDIFF(wk,0,@Mindate), 0)) <br> end<br> SELECT @Mindate=(SELECT DATEADD(day, 1,@Mindate))<br>end<br>return @Monday<br>end<br><br><br>调用:<br>select dbo.GetMonday(2007,7) --2007是年份,7是周数,这里是指2007年第7周的周一日期