开发者

time format in access 2007 - need help

开发者 https://www.devze.com 2023-01-15 08:50 出处:网络
i have this value in date field: 开发者_StackOverflow07/09/2010 07:34 how i can see this only: 07:34

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

精彩评论

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