function covertTime(a) { a = a.split(':'); return (a[0]*60*60*1000)+(a[1]*60*1000)+(a[2]*1000); } alert(covertTime('1:32:47'));