VBScript の関数、DateValue
MsgBox DateValue("2011-06-28") ' 2011/06/28 'MsgBox DateValue("2011-06-31") ' Error MsgBox DateValue("2011/06/28") ' 2011/06/28 MsgBox DateValue("平成 23 年 6 月 28 日") ' 2011/06/28 MsgBox DateValue("6 月 28 日") ' 2011/06/28 MsgBox DateValue("28-Jun-2011") ' 2011/06/28 MsgBox DateValue("June 28, 2011") ' 2011/06/28 MsgBox DateValue(#4:45:23 PM#) ' 0:00:00 MsgBox DateValue(#6/28/2011#) ' 2011/06/28