VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



More leap year routines

by Anonymous (267 Submissions)
Category: Miscellaneous
Compatability: Visual Basic 4.0 (32-bit)
Difficulty: Unknown Difficulty
Originally Published: Fri 2nd July 1999
Date Added: Mon 8th February 2021
Rating: (1 Votes)

More leap year routines

Rate More leap year routines



Function LeapYear (ByVal YYYY As Long) As Boolean
    LeapYear = YYYY Mod 4 = 0 _
       And (YYYY Mod 100 <> 0 Or YYYY Mod 400 = 0)      
End Function
Function LeapYear2 (ByVal YYYY As Long) As Boolean
   LeapYear2 = Month(DateSerial(YYYY, 2, 29)) = 2      
End Function

Download this snippet    Add to My Saved Code

More leap year routines Comments

No comments have been posted about More leap year routines. Why not be the first to post a comment about More leap year routines.

Post your comment

Subject:
Message:
0/1000 characters