Login | Register
Find Code
 

Close

 
  • Submit Code
  • ASP, HTML and XML
  • Database
  • Dates and Math
  • Files and Directories
  • Forms and Controls
  • Lists, Collections and Arrays
  • Miscellaneous
  • Multimedia / Games
  • Network / Internet
  • Office/VBA
  • Registry
  • Screen / Graphics
  • String Manipulation
  • System API
  • VB.NET / ASP.NET
  • Windows 2000/XP
 

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:
Sponsored Links: