Results 1 to 3 of 3

Thread: {RESOLVED} Get time formatted with milliseconds

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2005
    Posts
    1,521

    Resolved {RESOLVED} Get time formatted with milliseconds

    Does anyone know a way to get the time formmated like hh:mm:ss.m? Where m is milliseconds. I have a feeling I may need to take the ticks and convert that to date and time but I'm not sure how.

    THanks
    Last edited by mpdeglau; Dec 6th, 2005 at 01:16 PM.

  2. #2
    Frenzied Member Zakary's Avatar
    Join Date
    Mar 2005
    Location
    Canada, Quebec, Montreal
    Posts
    1,654

    Re: Get time formatted with milliseconds

    Maybe Date.Now.Millisecond is what you are looking for.
    VB Code:
    1. Me.TextBox1.Text = Date.Now.ToString("HH:mm:ss") & " " & DateTime.Now.Millisecond
    Using VS 2010 on Fw4.0

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2005
    Posts
    1,521

    Re: Get time formatted with milliseconds

    Thanks. makes me feel kinda stupid that it was that obvious.

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