VB.NET & Date.IsLeapYear() - Date.IsLeapYear() : Returns an indication whether the specified year is a leap year.
ShotDev Focus:
- VB.NET & Date.IsLeapYear()
Example
IsLeapYear.aspx
<%@ Page Language="VB" %> <script runat="server"> Sub Page_Load(sender As Object, e As EventArgs) Session.LCID = 1033 Me.lblText1.Text = Date.IsLeapYear(2008) End Sub </script> <html> <head> <title>ShotDev.Com Tutorial</title> </head> <body> <form runat="server"> <asp:Label id="lblText1" runat="server"></asp:Label><br /> </form> </body> </html>
Screenshot