Home > How-To Library > Coding Basics
How to find a given year is leap year or not
**************************************************************** * © 2007 CodeItBetter http://www.codeitbetter.com * * This notice MUST stay intact for legal use * **************************************************************** Function IsLeapYear(year As Integer) As Boolean ' Are February 29 and March 1 different dates? IsLeapYear = DateSerial(year, 2, 29) <> DateSerial(year, 3, 1) End Function
If you would like to submit your code here please us. Do not forget to mention your name. We are always thankful to each and everyone of you who submitted their code here.