Welcome to Dot Net World
Friday, October 3, 2008
Converting Decimal to Time Format
decimal sec=123456;
TimeSpan t = TimeSpan.FromSeconds(sec);
string strTime = String.Format("{0}:{1:00}:{2:00}", t.Hours, t.Minutes, t.Seconds).ToString();
Response.Write(strTime);
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment