how to change Time format?
How to fatch Hou开发者_运维知识库rs:minutes
from a datetime variable. Right I am using Strings function to achieve this. Is there any builtin function for this?
for showing time in hh:mm you can format like this
date.ToString("hh:mm");
yourdt.ToString("h:m");
for current time
DateTime.Now.ToString("h:m");
精彩评论