The power of the phrase "Golfed it down" amazes me.

But seriously,
Thanks to all for your most excellent suggestions.

I have decided to go with this.

Code:
 
;Create an array of Last day of each month
$mld = "31","28","31","30","31","30","31","31","30","31","30","31"

;Calculate if Leap Year
$LeapYear= Not(@YEAR MOD 400) OR (@YEAR MOD 100) AND Not(@YEAR MOD 4)

;Reset the February value in the array if this is a Leap Year
If $LeapYear = 1
$mld[1] = 29
EndIf

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


_________________________
Taxation WITH representation isn't so hot, either!