js两个日期之间的工作日数 [removed] //假日表 var holidays = new Array(); holidays[holidays.length] = new Date("2012/02/01"); holidays[holidays.length] = new Date("2012/02/03"); function getWorkDays(){ var dd = document.getElementById("days"); dd.value=calculateWor
vba代码很简单,如下;数据来源于“国务院办公厅关于2020年部分节假日安排的通知”
=workDay(YEAR(TODAY())&"-"&MONTH(TODAY())&"-"&B3)
'判断指定日期是否上班
Function workDay(rq)
Dim cel As Range
If Weekday(rq) = 1 Or Weekday(rq) = 7 Then
temp = "休"
For Each cel In Range("节假日表!