I need to convert a in a timestamp, this is my html code:
<input type="date" name="date_end" id="date_end">
This field has a value that I have put like 25/10/2017 My jquery code is:
var dataEnd = $('[name="date_end"]').val();
if (!dataEnd) {
return false;
} else {
var timestamp_end=$('[name="date_start"]').val().getTime();
console.log("TIMESTAMP END "+timestamp_end);
.....
}
But this is not work, anyone can help me?