TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Sam Kent
NA
4
7.5k
Store value in a variable with time format
Aug 25 2015 1:36 AM
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
Reply
Answers (
2
)
export image from gridview to excel
How to check a catalog file is signed and certificate detail