Alex Rivera | Logout

How do you get the current time of day?

Asked 2008-11-17T21:06:47.923
323

How do you get the current time (not date AND time)?

Example: 5:42:12 PM

Edit
Report

1 Answer

14

This will be better, Try This one

    DateTime.Now.ToShortTimeString();

For this you don't need to specify the Format for the Time.

answered 2012-05-17T04:35:46.527

Your Answer