hey how to convert string in timestamp
I recovered the text of time and I convert it in date
when I converted to timestamp the value is negative
var timenow=$("#time").text();
var res = timenow.split(":");
var d80 = new Date();
var curr_date = d80.getDate();
var curr_month = d80.getMonth();
var curr_year = d80.getFullYear();
var date1 = new Date(curr_date, curr_month, curr_year, res[0], res[1],res[2]);
console.log(date1);
const timestamp = date1 / 1000;
console.log(timestamp);
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div id="time">
00:50:30
</div>