VB.net Program to get Hour:Minute:Second

Rajnilari2015
Posted by Rajnilari2015 under VB.NET category on | Points: 40 | Views : 336
Namespace ConsoleApplication
Class Program
Private Shared Sub Main(args As String())
Dim hourMinuteSecond = DateTime.Now.ToString("HH:mm:ss")
Console.WriteLine("Hour:Minute:Second : {0}", hourMinuteSecond)
Console.ReadKey()
End Sub
End Class
End Namespace


Result
------

Hour:Minute:Second : 09:38:53

Comments or Responses

Login to post response