Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DateTime Format 1

Status
Not open for further replies.
Jan 28, 2004
19
0
0
US
I am new to VB and I using the NOW function in my code to get the current date and time. The function works but I would like to remove the Separators from the Date and the Colon from the Time.

The Current Output I have is :06/02/2010 2:01:28 PM

My hope is to remove the separators and the colon so it looks like :0602201020128PM

Thanks again for all your help.
 



Hi,

Check out the Format function.

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top