Datetime into string without spaces

dwyane123

Member
Joined
Oct 14, 2008
Messages
23
Programming Experience
Beginner
Hey guys need help here.

I need to create a time stamp and make it unique for a file naming. However, i use
Dim Now As DateTime = DateTime.Now

However it returns a date in this format
10/17/08 10:26:57 AM

Is there any way that i can code to make the time stamp to become all in numbers like

101708102657

something like that.

THanks alot
 
Back
Top