Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Printing and Using Time in Milliseconds

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Printing and Using Time in Milliseconds

    I can print and use Time[0] which gives me Date, HH:MM:SS or it seems I can use
    Time[0].Millisecond which gives me just the number of Milliseconds.

    Rather than doing a Print ( Time[0].ToString() + Time[0].Millisecond.ToString() );

    How do I access Print or otherwise the Date, HH:MM:SS and Milliseconds in One shot.

    Thanks

    #2
    See https://msdn.microsoft.com/en-us/lib...v=vs.110).aspx

    For example
    Code:
    string timestamp = Time[0].ToString("yyyy-MM-dd HH:mm:ss.fff");
    If you do it a lot, then build a simple routine to call.

    Comment


      #3
      aslane, That was exactly what I was looking for.

      thanks

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      182 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      335 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      259 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      358 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      188 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X