Function to Determine If a Given Year is a Leapyear.

Category:
Dates and Math
Type:
Snippets
Difficulty:
Beginning
Author:
Larry Serflaten

Version Compatibility:

More information:
Use this function to determine if a given year is a leap year. Simply call this function passing in the year as type integer. Such as IsLeapYear(2000).

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: