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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top