Determine if a Given Year is a Leap Year 2

Category:
Dates and Math
Type:
Snippets
Difficulty:
Beginning
Author:
Brian Gillham

Version Compatibility: Visual Basic 5

More information:
This snippet will handle all errors many people make when trying trying to determine a Leap Year. You can pass anything you like to this routine and if it is not a leap year then... it's not.

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

Declarations:

Code: