JavaScript Code


JavaScript – Get UTC Minutes from Date


Date – getUTCMinutes()

date.getUTCMinutes()

getUTCMinutes() returns the minutes of this date object, according to universal time

Examples

1. get the minutes from current date according to universal time

let date = new Date();
console.log(date);
console.log(date.getUTCMinutes());


Copyright @2022