Determine if a Given Year is a Leap Year 2
Category:Dates and Math
Version Compatibility: Visual Basic 5
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.