Hi........
I have two date startdate 05/14/2012 12:25:00 and enddate 05/15/2012 23:21:00 like this ,
i need diffrence of this time in terms of HH:MM:SS Please suggest.......................
Thanks in advance
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
SenthilkumarPosted May 17, 2012, 7:47 AM
Try this...
Pravinkumar BirajdarPosted May 17, 2012, 10:22 AM
private void button2_Click(object sender, EventArgs e)
{
TimeSpan ts;
ts = Convert.ToDateTime(dateTimePicker2.Value).Subtract(Convert.ToDateTime(dateTimePicker1.Value));
label1.Text = ts.ToString();
}