Main Menu

HOME

.Net
ASP
Assembly
C
C++
Delphi
HTML
Java
JavaScript
MySQL
PC interface
Powershell
Perl
PHP
VBScript
Visual Basic
XML

US Job listings




   Misc

   Amazon

   Links

    


leap year functions

 

 'leap year functions

Function LeapYear(ByVal YYYY As Long) As Boolean
LeapYear = YYYY Mod 4 = 0 _
And (YYYY Mod 100 <> 0 Or YYYY Mod 400 = 0)
End Function
Function LeapYear2(ByVal YYYY As Long) As Boolean
LeapYear2 = Month(DateSerial(YYYY, 2, 29)) = 2
End Function

Private Sub Form_Load()
MsgBox LeapYear(1971)
MsgBox LeapYear2(2000)
End Sub

 

 

 

 

 




   Sponsors
 

   Software
500 Java Tips E-book
PHP editor
PERL editor
Beginning Java
Beginning Visual Basic
Learn VB.net
Learn VB 6
VB and databases
ASP image library
C++ builder programming
C++ fundamentals

   Source Code
event logs to an excel spreadsheet(VBScript)
list service in a listbox(VB.net)
copy a file using CopyTo(C Sharp)
date and time example(PHP)
convert an IP address to a hostname(C Sharp)
The Register news(PHP)
gethostbyname function(PHP)
Replace a SubString with another(VB.net)

    




Copyright © 2003 by programmershelp.co.uk