Format(Now, Milliseconds)?

  • Thread starter Thread starter DraguVaso
  • Start date Start date
D

DraguVaso

Hi,

Is there a way to format a date like this: Format(Now,
"HH:mm:ss.Milliseconds")??

I knwo I can use the Now.Milliseconds-function, but it would be nicer to put
it in the Format-function too, but I can't fidn the abreviation for it?

Anybody can help me with this?

Thanks a lot in advance,

Pieter
 
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.
 
Back
Top