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 argusthome, 03-08-2026, 10:06 AM
      0 responses
      64 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      41 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      22 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      25 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      51 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X