SyntaxFix
Write A Post
Hire A Developer
Questions
string.Format("{0:hh:mm:ss tt}", DateTime.Now)
This should give you the string value of the time. tt should append the am/pm.
You can also look at the related topic:
How do you get the current time of day?