开发者

time format in access 2007 - need help

i have this value in date field: 开发者_StackOverflow07/09/2010 07:34

how i can see this only: 07:34

how to do it in access 2007 and in C# format ?

thank's in advance


Try this:

Date dt = <value>;
String time = dt.ToString("hh:mm");

Use HH:mm for 24 hour format and hh:mm tt for 12 hour format with AM/PM.

Use this for reference:
http://authors.aspalliance.com/aspxtreme/sys/demos/datetimeformats.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜