Re: Format(Now, Milliseconds)?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Morten Wennevik (MortenWennevik_at_hotmail.com)
Date: 06/14/04


Date: Mon, 14 Jun 2004 10:58:12 +0200

Hi Pieter,

I don't know about String.Format, but you can use

DateTime.ToString("HH:mm:ss:fff");

f is fraction of second, which essentially is milliseconds, fff to the nearest 1/1000.

-- 
Happy coding!
Morten Wennevik [C# MVP]


Relevant Pages

  • Re: Format(Now, Milliseconds)?
    ... f is fraction of second, which essentially is milliseconds, fff to the nearest 1/1000. ... Happy coding! ... Morten Wennevik ...
    (microsoft.public.dotnet.languages.vb)
  • RE: Programmatically space controls evenly
    ... Happy Coding! ... Morten Wennevik [C# MVP] ... "proxyuser" wrote: ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: Ultimate efficiency using INITIALIZE statement in COBOL
    ... language) does... ... (The PERFORM loop itself took 0.39 seconds). ... expect a savings of, oh, 14 milliseconds per day. ... "Coding for micro efficiency is usually futile," ...
    (comp.lang.cobol)
  • Re: Error in Windows service
    ... "Morten Wennevik" wrote: ... Happy Coding! ... Morten Wennevik [C# MVP] ...
    (microsoft.public.dotnet.general)
  • Re: creating a partial class
    ... It would be a nice feature to be able to right-click a class and select "New partial class". ... Happy coding! ... Morten Wennevik [C# MVP] ...
    (microsoft.public.dotnet.framework.aspnet)