/ Published in: ASP
URL: http://reusablecode.blogspot.com
Function to check if a given year is a leap year.
Expand |
Embed | Plain Text
<% ' Copyright (c) 2008, reusablecode.blogspot.com; some rights reserved. ' ' This work is licensed under the Creative Commons Attribution License. To view ' a copy of this license, visit http://creativecommons.org/licenses/by/3.0/ or ' send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California ' 94305, USA. ' Check if a year is a leap year. function isLeapYear(someYear) if someYear Mod 4 = 0 and (someYear Mod 100 <> 0 or (someYear Mod 100 = 0 and someYear Mod 400 = 0)) then isLeapYear = True else isLeapYear = False end if end function %>
You need to login to post a comment.
