ASP.NET C# Convert seconds into time

Hi Guys,

Does anyone know how to convert a double into time format (eg 00:02:45) in asp.net C#.

Regards,

Nigel
Nigel_TaylorAsked:
Who is Participating?
 
DhaestCommented:
TimeSpan y;
 y = TimeSpan.FromSeconds(63);
 myString = y.ToString();

Replace 63 by your number of seconds
0
 
Chandan_GowdaCommented:
0
 
Chandan_GowdaCommented:
if u want to convert a double in to datetime please follow the below link

http://www.dotnetspider.com/qa/Question27132.aspx
0
 
Nigel_TaylorAuthor Commented:
Thanks for the great response.

Nigel
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.