How to get the difference of two datetimepickers in hours when the time entered is less than 24hrs?
>Solution :
private void btnClickHere_Click(object sender, EventArgs e)
{
TimeSpan tpan = EndTime.Value - StartTime.Value;
int hrs = tpan.Hours + 1;
txtTextBox.Text = Convert.ToString(hrs);
}