龙听期货论坛's Archiver
龙听期货论坛
»
编程语言More>>||
»
MC内置函数【Pre-built Functions】
» 【IsWorkDay】
龙听
发表于 2022-11-2 10:08
【IsWorkDay】
[code]Inputs: RefDate(Numeric);
condition1 = DayOfWeek(RefDate) = 0 OR DayOfWeek(RefDate) = 6 ;
If condition1 Then
IsWorkDay = False
Else
IsWorkDay = True;
[/code]
页:
[1]