Results 1 to 2 of 2

Thread: [RESOLVED] VS 2005 time

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2009
    Posts
    138

    Resolved [RESOLVED] VS 2005 time

    How to display time without seconds in label? For example: 13:17

    Thanks

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: VS 2005 time

    Code:
    Label1.Text = Now.ToString("HH:mm")
    use lowercase hh instead of HH if you want a 12 hour clock instead of 24 hour clock.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width