Try the following:
-----------------
Dim objTime As New TimeSpan(0, 0, 1234)
Debug.WriteLine(objTime.Hours & ":" & objTime.Minutes & ":" &
objTime.Seconds)
-----------------
There's probably better and shorter ways to do this, but I can't think of
any at the minute.
Note, you'll need to handle cases where the duration goes over one day
(86400 seconds)
HTH,
Trev.
"Able" <ab**@epost.no> wrote in message
news:NM******************@news2.e.nsc.no...
Dear friends
I need to format seconds as hh:mm:ss. I see a lot of coding transforming
seconds to hh:mm:ss. Somebody know a short way?
Regards Able