全国计算机级辅导:VB中日期的处理

文章作者 100test 发表时间 2007:03:10 18:31:06
来源 100Test.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(....))


相关文章


半斤八两(一个有趣的java题)
[二级VB]什么是32位?
全国计算机级辅导:VB中日期的处理
Vb中如何获取4位的随机数字代码
用VB实现“木马”式隐形运行程序
澳大利亚华人论坛
考好网
日本华人论坛
华人移民留学论坛
英国华人论坛