How to get the time in VB.NET

I just want to get the time only not date. how do i get that into a date string.

vmandemAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Éric MoreauConnect With a Mentor Senior .Net ConsultantCommented:
You want the time in a date string ? I don't understand. Can you do an example of what you want.

To extract the time, you can use: date.now.tostring("HH:mm:ss")
0
 
Richard KreidlSoftware DeveloperCommented:
This will give you only the time:

MsgBox(Now.ToShortTimeString.ToString)
0
All Courses

From novice to tech pro — start learning today.