Basically, I receive raw timestamps and I need to format them into HH:MM:SS format.
This will display the current time in the format you asked for (HH:MM:SS)
HH:MM:SS
function dostuff() { var item = new Date(); alert(item.toTimeString()); }