how to calculate no of days between two dates in vb.net?
['If True Then.', 'Dim dt1 As DateTime = Convert.ToDateTime(DateTimePicker1.Text)', 'Dim dt2 As DateTime = Convert.ToDateTime(DateTimePicker2.Text)', 'Dim ts As TimeSpan = dt2.Subtract(dt1)', 'If Convert.ToInt32(ts.Days) >= 0 Then.', 'MessageBox.Show("Total Days are " & Convert.ToInt32(ts.Days))', 'Else.']