how to get just the current time in vb.net?

  • Thread starter Thread starter dk
  • Start date Start date
D

dk

what format is required to get just the
current time, for example
11:34 AM within vb.net?

tia,
dk
 
what format is required to get just the
current time, for example
11:34 AM within vb.net?

tia,
dk

If you mean display?

DateTime.Now.ToLongTimeString()
DateTime.Now.ToShortTimeString()

HTH
 
Back
Top