工作日为周一至周五,节假日除外。
周末期间的一些假期应移至下周一(例如加拿大国庆日、节礼日、新年)或上周五(例如圣诞节)
以下是加拿大安大略省假期的公式,如果财政年度是 FYear
圣日公式
新年 =WORKDAY(DATE(FYear,1,0),1)
家庭日 =DATE(FYear,2,22)-WEEKDAY(DATE(FYear,2,6))
耶稣受难日 =FLOOR(DATE(FYear,5,DAY(MINUTE(FYear/38)/2+56)),7)-36
维多利亚日 =DATE(FYear,5,25)-WEEKDAY(DATE(FYear,5,23))
加拿大日 =DATE(FYear,7,1)+(WEEKDAY(DATE(FYear,7,2))<3)*(3-WEEKDAY(DATE(FYear,7,2)))
CivicDay =DATE(FYear,8,8)-WEEKDAY(DATE(FYear,8,6))
劳动节 =DATE(FYear,9,8)-WEEKDAY(DATE(FYear,9,6))
感恩节 =DATE(FYear,10,15)-WEEKDAY(DATE(FYear,10,6))
圣诞节 =DATE(FYear,12,25)-(WEEKDAY(DATE(FYear,12,26))<3)*WEEKDAY(DATE(FYear,12,26))
节礼日 =DATE(FYear,12,26)+(WEEKDAY(DATE(FYear,12,27))<3)*(3-WEEKDAY(DATE(FYear,12,27)))
下一个新年 =WORKDAY(DATE(FYear+1,1,0),1)