how in VB.NET to convert milliseconds to hh:mm:ss format?

Lukas Wolfe

New member
Hi all,

I am working on a program with a VLC (video player) activex component in it.
The activex control can return the length of a video file in milliseconds only (ie 5423).
Using simple math I can convert those milliseconds into this format h:m:s. so for example 0:3:22

What I want to do is convert it to HH:MM:SS, so the above example would show 00:03:22.

Any help and a simple example would be awesome!

Thanks
 
Back
Top