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

    


is year a leap year

 

 'is year a leap year

Public Function IsLeapYear(yr As Variant) As Boolean
If VarType(yr) = vbDate Then
IsLeapYear = (Day(DateSerial(Year(yr), 2, 29)) = 29)
Else
IsLeapYear = (Day(DateSerial(yr, 2, 29)) = 29)
End If
End Function

Private Sub Form_Load()
MsgBox IsLeapYear(2002)

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
start notepad as a new process(C Sharp)
Disk ID(C)
using the md5 function to encrypt data(php)
Display all sub-folders of a given path(VBNet)
time example(PHP)
Length of a string(ASP)
display all processes on your system(VB)
Active window title(VB)

    




Copyright © 2003 by programmershelp.co.uk