StampDate Format For Data and Time

  • Thread starter Thread starter srm
  • Start date Start date
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
 
Back
Top