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 你想得到對應(yīng)的某個部分 then 只寫相應(yīng)的部分
如果你想得到對應(yīng)的數(shù)值則使用Val(Format(....))
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 你想得到對應(yīng)的某個部分 then 只寫相應(yīng)的部分
如果你想得到對應(yīng)的數(shù)值則使用Val(Format(....))