全国计算机级辅导:VB中日期的处理 |
|
www.nanhushi.com 佚名 不详 |
Format (YourDate,"yyyy-mm-dd hh:nn:ss") if 你想得到"年" then 只写"yyyy" 或 "yy" if 你想得到"月" then 只写"mm" 或 "m" if 你想得到"日" then 只写"dd" 或 "d" 来源:www.examda.com if 你想得到"小时" then 只写"hh" 或 "h" if 你想得到"分" then 只写"nn" 或 "n" if 你想得到"秒" then 只写"ss" 或 "s" if 你想得到对应的某个部分 then 只写相应的部分 如果你想得到对应的数值则使用Val(Format(....))
|
|
|
文章录入:杜斌 责任编辑:杜斌 |
|
上一篇文章: Vb中如何获取4位的随机数字代码 下一篇文章: [二级VB]什么是32位? |
【字体:小 大】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口】 |
|
|