Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
Store value in a variable with time format
Sam Kent
Aug 25 2015 1:36 AM
436
Reply
Hello every body, please could any one help me out there, i want to store value in a variable in a time format. for example if a user enter 3 on the console line the value should display like this 3:00:00. this is my code so far:
Console.Write("\n");
Console.Write(" {0,8}", "duration:\t");
length = Convert.ToString(Console.ReadLine(),@"d\.hh\:mm\:ss");
Console.Write("\n");
but not working out. I appreciate any help from from any one. thanks
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
export image from gridview to excel
How to check a catalog file is signed and certificate detail