I'd like to parse the following string which is a time (HH:MM:SS): 00:00:00
Does anyone know how I can get the Hour, Minute, or Seconds values?
Thank you!
I'd like to parse the following string which is a time (HH:MM:SS): 00:00:00
Does anyone know how I can get the Hour, Minute, or Seconds values?
Thank you!
var time = "00:00:00";
var parts = time.split(':');
alert("hours: " + parts[0] + ", minutes: " + parts[1] + ", seconds: ", + parts[2])