Akhter HUssain

Akhter HUssain

  • 720
  • 1.3k
  • 101.4k

greater condition between two Time

Dec 8 2018 7:48 AM
i want if 9:00 > 8:00 then result in third column will be 1 .
DateTime dt1 = Convert.ToDateTime(txtTime.Text.Trim()).Date;
DateTime dt2 = Convert.ToDateTime(txtLTime.Text.Trim()).Date;
if (int.Parse(txtLTime.Text) > int.Parse(txtTime.Text))
{
txtLate.Text = "1";
}
 
i tried above code but not working 

Answers (1)