Sub CurrentTime()
MsgBox Format(Date, "dd-mmm-yyyy")
End Sub
or
Sub CurrentTime()
MsgBox Format(Date, "mmm d,yyyy")
End Sub
--
---
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my addy)
"Dan Thompson" <(E-Mail Removed)> wrote in message
news:5DB90E42-6844-4206-BEB5-(E-Mail Removed)...
> My code
>
> Sub CurrentTime()
> MsgBox Date
> End Sub
>
> This procedure outputs a message box that displays the current date.
> The problem I am facing is the date outputs like this "16/1/2008" and I
> want it to output so it displays like this "16-Jan-2008" or "Jan 16, 2008"
>
> Can someone help me on this ??
>
> Dan Thompson
>
|