龙听期货论坛's Archiver

C
+
+


 微信: QQ:

龙听 发表于 2022-11-2 10:27

【LastDayOfMonth】

[code]inputs: TargetMonth( numericsimple ) ;

if TargetMonth = 1 then
        LastDayOfMonth = 31
else if TargetMonth = 2 then
        LastDayOfMonth = 28
else if TargetMonth = 3 then
        LastDayOfMonth = 31
else if TargetMonth = 4 then
        LastDayOfMonth = 30
else if TargetMonth = 5 then
        LastDayOfMonth = 31
else if TargetMonth = 6 then
        LastDayOfMonth = 30
else if TargetMonth = 7 then
        LastDayOfMonth = 31
else if TargetMonth = 8 then
        LastDayOfMonth = 31
else if TargetMonth = 9 then
        LastDayOfMonth = 30
else if TargetMonth = 10 then
        LastDayOfMonth = 31
else if TargetMonth = 11 then
        LastDayOfMonth = 30
else if TargetMonth = 12 then
        LastDayOfMonth = 31 ;
[/code]

页: [1]