Categories
Asp, Asp.net

How To Check Leap Year In Asp.Net

How To Check Leap Year In Asp.Net In this post i am going to explain that how to check that current year is Leap or not in Asp.Net.It is very simple and having just a few lines of code. Method 1:- protected void Page_Load(object sender, EventArgs e) { Int32 Year = DateTime.Now.Year; if (DateTime.IsLeapYear(Year)) { […]