如何计算VBScript中的最后一个工作日?它适用于Reporting Services报告.
谢谢
怎么样:
intMonth=11 'Use zero to return last day of previous month ' LastDayOfMonth= dateserial(2008,intMonth+1,0) 'Saturday ' If WeekDay(LastDayOfMonth,1)=7 Then LastDayOfMonth=LastDayOfMonth-1 'Sunday ' If WeekDay(LastDayOfMonth,1)=1 Then LastDayOfMonth=LastDayOfMonth-2 Msgbox LastDayOfMonth & " " & Weekdayname(Weekday(LastDayOfMonth,1),1)