I have a text box StartTime and i want to convert the input in to a time format can not get it to work
$hours = (int)$StartTime;
$mins = (int)(($StartTime-$hours)60);
$secs = (int)(($StartTime-$hours)3600 - $mins*60);
sprintf($outstring,"%2d:%02d:%02d",$hours,$mins,$secs;