469,658 Members | 1,862 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,658 developers. It's quick & easy.

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

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
Jul 19 '05 #1
4 5323
Either set the appropriate System format, or you can use a function like
this:

http://www.adopenstatic.com/resource...formatdate.asp

Cheers
Ken

"Krzysztof Skibniewski" <kr*******************@lge.pl> wrote in message
news:bl**********@news2.ipartners.pl...
: 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
:
:
Jul 19 '05 #2
Dear, but i really care about miliseconds...

regards
kris
"Ken Schaefer" <ke*******@THISadOpenStatic.com> wrote in message
news:u0**************@TK2MSFTNGP10.phx.gbl...
Either set the appropriate System format, or you can use a function like
this:

http://www.adopenstatic.com/resource...formatdate.asp

Cheers
Ken

"Krzysztof Skibniewski" <kr*******************@lge.pl> wrote in message
news:bl**********@news2.ipartners.pl...
: 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
:
:

Jul 19 '05 #3
"Krzysztof Skibniewski" <kr*******************@lge.pl> wrote in message
news:bl**********@news2.ipartners.pl...
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/downl...nPhasedOut.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.
if somebody knows, pls let me know..


Jul 19 '05 #4
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

"Krzysztof Skibniewski" <kr*******************@lge.pl> wrote in message
news:bl**********@news2.ipartners.pl...
: Dear, but i really care about miliseconds...
:
: regards
: kris
: "Ken Schaefer" <ke*******@THISadOpenStatic.com> wrote in message
: news:u0**************@TK2MSFTNGP10.phx.gbl...
: > Either set the appropriate System format, or you can use a function like
: > this:
: >
: > http://www.adopenstatic.com/resource...formatdate.asp
: >
: > Cheers
: > Ken
: >
: > "Krzysztof Skibniewski" <kr*******************@lge.pl> wrote in message
: > news:bl**********@news2.ipartners.pl...
: > : 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
: > :
: > :
: >
: >
:
:
Jul 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Thomas Bärwinkel | last post: by
2 posts views Thread by Robert Brown | last post: by
5 posts views Thread by kpp9c | last post: by
1 post views Thread by Nerds | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.