SyntaxFix
Write A Post
Hire A Developer
Questions
You can simply write
string time = dateTimeObect.ToString("HH:mm");