I'm having a time in this format like
var time = "22:00:00"
I need to convert this into UTC time format like 1567890764 I'm using this one to convert time into UTC.
Math.floor(new Date().getTime() / 1000) //it return current UTC timestamp
how to pass the "time" variable and get UTC timestamp for that particular time?