Hey thanks Clive. I actually in the meantime found out two ways of doing the same:
(I)
Dim dDate As Date
Dim strText As String
dDate = Date
strText = Replace(CStr(dDate), "/", "")
The replace function finds the slashes ('/') and replaces them with nothing ('')
(II)
Dim dDate As Date
Dim strText As String
dDate = Date
strText = Format(dDate, "mmddyy")
Thanks for your help Clive.
Chow
Goels
|