SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
String hourMinute = DateTime.Now.ToString("HH:mm");
Now you will get the time in hour:minute format.