Time format conversion VBS function (a simple 5 minutes job)


I am working on a small VisualBasic Script (.vbs) based utility program and it needs to be completed today and I could use some help with it.

Now I just need a function which will take in an argument, will convert it and return the value.

function Timecode(valueIn)

valueIn is always either

a) an integer (seconds)

b) a timecode string in a format of "HH:MM:SS" (hours, minutes, seconds)

Return value is the other format.


if the argument is 12345 the return value is "03:25:45"

or vice versa,

if the argument is "03:25:45" the return value is 12345.

"00:00:30" = 30

120 = "00:02:00"


I know I could do that with Floor and Mod, but I suck in math and don't have couple of hours to figure it out. From you it will take few minutes, I',m sure...

You can just write a little VBS script with that function in it and the job is done, ok?

Skills: Excel VBA, VBScript

See more: vbscript vbshorttime, classic asp date format, vbscript date format yyyymmdd, vbscript cdate, vbscript date functions, vbscript compare time, vbscript format time hh mm ss, asp vbscript formatdatetime, time format 150354, real time currency conversion board, javascript time format autocomplete, stp format conversion, adobe illustartor format conversion, works format conversion, seattle format conversion, flash debug function simple, insert est time format mysql, php time zone conversion script, video format conversion, wikipedia time format

About the Employer:
( 6 reviews ) hometown, Finland

Project ID: #17799533

Awarded to:


I can't believe there's no bid till now. I will do this for you, without any problem. Thanks for reading my proposal.

$10 USD in 1 day
(3 Reviews)

2 freelancers are bidding on average $20 for this job


Hello, I am experienced vb expert. I can help with this task with quick turnaorund. Looking to hearing from you. Kind regards

$30 USD in 1 day
(3 Reviews)