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(....))