BinaryNerve Tech
Friday, August 16, 2013
Timespan Use
string sHours = '03:00:00';
int hoursInt;
TimeSpan ts = TimeSpan.Parse(sHours);
hoursInt
= ts.TotalHours;
Result:
hoursInt = 3
Note: Can compute TotalDays, TotalMinutes, TotalSeconds, TotalMilliseconds
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment