how to calculate the hours
like mrg 10 to 5 total 7 hrs
if i login in 10.30 and logout at 5.30 same 7 hrs me wrokked
now i logi at 10.15 and logout at 5.30 7.45 7hrs and 45 mins me worked i need to calculate the min and hrs
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.
Khan Abrar AhmedPosted Jun 30, 2014, 2:46 AM
DateTime inTime = Convert.ToDateTime("30/Jun/2014 10.30 AM");
DateTime outtime = Convert.ToDateTime("30/Jun/2014 5.30 PM");
System.TimeSpan diff2 = inTime - outtime;
Akhil MittalPosted Jun 30, 2014, 1:43 AM
http://msdn.microsoft.com/en-us/library/8ysw4sby(v=vs.110).aspx