Find Code:
All Words
Any of the Words
Exact Phrase
Home
:
Code
:
Forums
:
Submit
:
Mailing List
:
About
:
Contact
Code
All
VB.NET
ASP.NET
C#
VB Classic
ASP Classic
Snippets
Popular
Resources
Submit Code
Forums
Articles
Tips
Links
Books
Contest
Link to us
A Date function which determines if a year is a le...
Author:
Phil Monroe
E-mail:
Click to e-mail author
Submitted:
11/28/2000
Version:
VB5
Compatibility:
VB5, VB6
Category:
Date/Time
Views:
10804
A Date function which determines if a year is a leap year. Very handy when doing date calculations.
Declarations:
'none
Code:
Public Function LeapYr(strDate As String) As Boolean If (Year(strDate) Mod 400) = 0 Then LeapYr = True Exit Function End Function If (Year(strDate) Mod 100) = 0 Then Exit Function End If LeapYr = (Year(strDate) Mod 4) = 0 End Function
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2024 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement