Check LeapYear using VB.NET
Sub CheckLeapYear()
Dim MyDate As DateTime
MyDate = New DateTime(2008, 8, 15)
If DateTime.IsLeapYear(MyDate.Year) = True Then
MsgBox("Specified year is a leap year")
End If
End Sub
Visual Studio .NET Tips and Tricks, VB.NET Code Samples, C# Code Snippets, ASP.NET Code Samples, .NET Tips and Tricks, C# Tips & Tricks, Visual Studio 2010, .NET Framework Code Samples, VB.NET Tips & Tricks
No comments:
Post a Comment