How to get time of the format 12:10:00 [Resolved]

Posted by Amritha444 under C# on 4/9/2011 | Points: 10 | Views : 1923 | Status : [Member] | Replies : 1
Hi all

I want current time in the format 12:10:00

how its possible

Thanks in Advance




Responses

Posted by: WilPeters on: 4/9/2011 [Member] Starter | Points: 50

Up
0
Down

Resolved
If you want to use it as a string, try this

string time = DateTime.Now.ToString("HH:mm:ss");


Amritha444, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response