用户可以在表格中选择开始日期和结束日期。(假设周五到周一。)如何检查当前工作日是否在这两个工作日之间?
Dim WEstart As DayOfWeek = 5 'Friday
Dim WEend As DayOfWeek = 1 'Monday
If Date.Now.DayOfWeek >= WEstart And Date.Now.DayOfWeek <= WEend Then
Return True
Else
Return False
End If
不能正常工作。