I have a string with 12 hour formatted time only
12
var time=\"12:10:12: PM\"
I want to convert this string to seconds.
how can
I was just trying to achieve the same thing. using https://momentjs.com/
This is how I got what I wanted (03:11:23 => 11483 seconds)
myVar = moment.duration(myVar).asSeconds()