ElvisJino
Programing Tips.Net Sql server C,C# and some other stuff.
Get Paid By Click
Mginger Mobile Money
Jan 20, 2010
calculate difference of two datetimepicker values in hours
datetimepicker dt1,dt2;
if (dt1.Value >= dt2.Value)
{
double totalTime;
TimeSpan ts = dt1.Value.Subtract(dt2.Value);
totalTime = Convert.ToDouble(ts.TotalHours).ToString("N2") ;
}
Newer Post
Older Post
Home
English Vocabulary By Playing Game
English Vocabulary By Playing Game
Easy Way To Pay
Earn While Searching