Entfernen Sie Millisekunden von DateTime JS

//You can just fetch hours, minutes and seconds..rather than removing milisecond
var myDate = new Date();
var hour = myDate.getHours();
var minute = myDate.getMinutes();
var seconds = myDate.getSeconds();
console.log(`${hour}:${minute}:${seconds}`); //15:27:35
Powerful Polecat