how obtain this format hh:mm:ss.fff ??

  • Thread starter Krzysztof Skibniewski
  • Start date
K

Krzysztof Skibniewski

Hello,

I'm trying find out how to obtain and output that format ( hh:mm:ss.fff ) in
my ASP.

if somebody knows, pls let me know..

thx
kris
 
E

Egbert Nierop \(MVP for IIS\)

Krzysztof Skibniewski said:
Hello,

I'm trying find out how to obtain and output that format ( hh:mm:ss.fff ) in
my ASP.
This is not possible by using standard ASP...
See the Format() function

You would need some API functions to do that... I don't know whether this
code below works. It works with me because I have a TLB. Without a TLB, you
would need to type the 'declare' functions yourselves as I just tried below.

VarTokenizeFormatString
and
VarFormatFromTokens
from OleAut32.dll

There is a free DLL here that calls them. You can use it...
http://www.nieropwebconsult.nl/download/ISPSessionPhasedOut.zip
Study the typelibrary from this DLL to see how to use it :) No manual
available but it is for 99% compatible with Vbscript so no need for another
syntax.
 
K

Ken Schaefer

Sorry - I didn't see that part (perhaps it would have helped if you'd
highlighted what you wanted).

VBScript functions don't seem to support milliseconds. IIRC JScript does
(but I don't know about the precision that you want). See, for example:
http://www.learnasp.com/learn/speedtimer.asp

Otherwise, you may be best following Egbert's suggestions.

Cheers
Ken

: Dear, but i really care about miliseconds...
:
: regards
: kris
: : > Either set the appropriate System format, or you can use a function like
: > this:
: >
: > www.adopenstatic.com/resources/code/formatdate.asp
: >
: > Cheers
: > Ken
: >
: > : > : Hello,
: > :
: > : I'm trying find out how to obtain and output that format (
: hh:mm:ss.fff )
: > in
: > : my ASP.
: > :
: > : if somebody knows, pls let me know..
: > :
: > : thx
: > : kris
: > :
: > :
: >
: >
:
:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,102
Messages
2,570,646
Members
47,247
Latest member
GabrieleL2

Latest Threads

Top