javascript - How to parse a string in jQuery -


I would like to parse the following string which is a time (HH: mm: ss): 00: 00:00

Do anyone know how I can get the values ​​of hours, minutes, or seconds?

Thank you!

  var time = "00:00:00"; Var Parts = Time. Split (':'); Warning ("Hour:" + [[+] + ", Min:" + Parts [1] + ", Second:", + Parts [2])  

Comments