Label1.Text = Date.Today.Day & "-" & Date.Now.Month & "-" & Date.Now.Year & " " & Date.Now.Hour & ":" & Date.Now.Minute & ":" & Date.Now.Second & "." & Date.Now.Millisecond
Select allOpen in new window
© 1996-2023 Experts Exchange, LLC. All rights reserved. Covered by US Patent
if you dont want to change the code
change the regional settings.
otherwise i would recommend formatting it manually to make sure it gets displayed the exact way you want like
check code below gets todays date in the format you like and stores it in a label
Open in new window