Groups | Blog | Home
all groups > c# > august 2004 >

c# : Format String: Hundredth of a second


Tom Dacon
8/4/2004 1:13:44 PM
Make your format string {0:yyyy-MM-dd HH:mm:ss.ff}

Tom Dacon
Dacon Software Consulting

"Özgür Aytekin" <oezguer.aytekin.spam@spam.dotnetcracks.com> wrote in
message news:uWdvUzleEHA.3680@TK2MSFTNGP11.phx.gbl...
[quoted text, click to view]

Jon Skeet [C# MVP]
8/4/2004 9:15:45 PM
[quoted text, click to view]

Use

{0:yyyy-MM-dd HH:mm:ss.fff}=20

--=20
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
Özgür Aytekin
8/4/2004 9:54:42 PM
How can I display the hundredth of a second or which is the correct format
string?

I use now {0:yyyy-MM-dd HH:mm:ss} and this display the following
information:

2004-08-04 21:49:21... But I want to display the hundredth of a second
too...

Regards,

Özgür Aytekin (MCSD .NET, MCDBA)

www.borsagame.com



Jon Skeet [C# MVP]
8/5/2004 8:39:39 AM
[quoted text, click to view]

Oops - one too many fffs - the above will give you thousandths of a=20
second.

--=20
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
AddThis Social Bookmark Button