Public Function DateFormat(dtmDate As Date) As String DateFormat = Format(dtmDate, "YYYY/mm/dd") End Function
Sub test() Dim dtmDate As Date dtmDate = "2011-06-30" MsgBox DateFormat(dtmDate) End Sub
Copyright © 2010 Office Tanabe. All Rights Reserved.