protected void Button1_Click(object sender, EventArgs e)
{
string dt1 = DateTime.Now.ToString("MM/dd/yyyy");
string dt2 = TextBox1.Text;
if (dt1 == dt2)
{
TextBox1.Text = "Correct";
}
else TextBox1.Text = "Wrong";
}
try it..and advice your end MM/dd/yyyy formate ..