SyntaxFix
Write A Post
Hire A Developer
Questions
There are different ways to do so. You can use DateTime.Now.ToLongTimeString() which returns only the time in string format.
DateTime.Now.ToLongTimeString()