Please check the below example.
static void Main(string[] args)
{
DateTime tm1 = DateTime.Parse("05:35");
DateTime tm2 = DateTime.Parse("13:57");
TimeSpan ts = (tm2 - tm1);
Console.WriteLine(ts);
DateTime dt1= DateTime.Parse("5/12/2012");
DateTime dt2 = DateTime.Parse("7/12/2012");
int days = (dt2 - dt1).Days;
Console.WriteLine(days);
Console.Read();
}
This will return u
08:22(time diff)
2(date diff)