you can simply new Date()
new Date('2022-04-20T17:00:00.000Z');
like this to convert given timestamp into required format
then you can also extract only the part you want
var d = new Date('2022-04-20T17:00:00.000Z');
console.log(d.getUTCHours()); // Hours
console.log(d.getUTCMinutes()); //Minutes
console.log(d.getUTCSeconds()); //Seconds
* Be the first to Make Comment