'Display Time in Label 1 and Display Date in Label 2

How can I Display time in military clock format to label 1 and Display date in Longdate format to label 2 regards guys.

    Label6.Text = DateTime.Now.ToLongDateString()
    Label3.Text = Now.ToLongTimeString.ToString()


Solution 1:[1]

Try the following:

Me.Label1.Text = DateTime.Now.ToString("HH:mm:ss")
Me.Label2.Text = DateTime.Now.ToLongDateString

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 HomeGrownCoder