Hi Krishna,
Please add a fresh page in your application and replace the page_load event with one I am ginving you.
protected void Page_Load(object sender, EventArgs e)
{
string date1 = "12/31/2013";
int diff = DateTime.Compare(DateTime.Today, Convert.ToDateTime(date1));
if (diff == 0)
{
Response.Write("This is Current date");
}
else if (diff < 0)
{
Response.Write("This is future date");
}
else if (diff > 0)
{
Response.Write("This is past date.");
}
}
Thanks and Regards,
Rk_Hirpara.