title: Show milliseconds component of DateTime while debugging in Visual Studio
body: <p>I am trying to debug something in Visual Studio that requires millisecond precision and it is making it very onerous because the <strong>parameter-less</strong> <code>ToString()</code> representation of a <code>System.DateTime</code> does not include the milliseconds component.</p>
  
  <p>An example would be when verifying an array of <code>System.DateTime</code> is ordered, I want to be able to see the milliseconds component when inspecting from the locals window.</p>
  
  <p>I am <strong>not</strong> asking for assistance with format strings in <code>DateTime.ToString</code></p>
  
  <p>It seems that it inherits from the system globalization settings, which do not allow you to specify a format with milliseconds (for good, obvious reasons):
  <a href="https://i.stack.imgur.com/GaICT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GaICT.png" alt="enter image description here"></a></p>
  
  <p>Thanks.</p>