'Comparing Date'How to Find whether both dates are equal or Not?'How to compare two dates in .Net?If DateTime.Compare(date1,date2) = 0 ThenResponse.Write("Are both Dates Equal" + "")Else If DateTime.Compare(date1,date2) < 0 Then Response.Write(date1.ToString() + " is Less than " + dt5.ToString() + "")Else Response.Write(date1.ToString() + " is Greater than " + date2.ToString() + "")End If