Time of day

  • Thread starter Thread starter rehiaa
  • Start date Start date
R

rehiaa

I want to show 13:06 (six minutes past one o'clock day)
in a label on a form
The code:
DateTime d1 = DateTime.Now;
this.lblTime.Text = d1.ToString();

gives med date ansd time. How do I format this to the expected result 13:06?
regards
rehiaa
 
"rehiaa" <[email protected]> a écrit dans le message de (e-mail address removed)...

Read the answer to your other post (Formatting Now) under your other name.

Joanna
 
Back
Top