Created
January 31, 2012 01:33
-
-
Save hatena19/1708095 to your computer and use it in GitHub Desktop.
閏年判定関数
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'引数 西暦年 返値 閏年ならTrue | |
Public Function IsLeapYear(aYear As Long) As Boolean | |
' IsLeapYear = Month(DateSerial(aYear, 2, 29)) = Month(DateSerial(aYear, 2, 28)) | |
IsLeapYear = IsDate(aYear & "/2/29") | |
End Function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment