Mini Golf ??

Slightly modified version of Richard's code

Code:
;Create an array of Last day of each month with buieldin leapyar check
$mld = 31,28+(Not(@Year Mod 400) Or (@Year Mod 100) And Not(@Year Mod 4)),31,30,31,30,31,31,30,31,30,31

;Get Last day of the current month from $mld array
$ld = $mld[@MonthNo-1]


I got curious:
Can you build an array of integer values for last day of month, with encapsulated code for february?

At least with KiX 4.51 you can! (previous code works)

-Erik