StampDate Format For Data and Time

S

srm

I'm using the following code to insert the date and time into my
contacts notes. Is there a way to customize the format of the date
and/or time to maybe show only the date? It currently comes out as
"6/7/2005 5:09:27 PM"

I am new to coding, so answers may be such that I need to learn more
before making these changes.

Sub StampDate()
Item.Body = Now() & vbCrLf & vbCrLf & Item.Body
End Sub

Sub CommandButton1_Click()
Call StampDate()
End Sub

thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top