2012-08-10 47 views

回答

4

您可以使用IsDate

這決定了值是日期還是可以轉換爲日期。

E.g. (從here

x = "January 12, 2009" 
if IsDate(x) then 
    msgbox(CDate(x)) 
end if 

輸出:

1/12/2009 
+0

就像一個魅力。畢竟我覺得這很簡單! – Slider345 2012-08-10 20:33:26

相關問題