Format the time using two digits
by David Storey
JavaScript
var timeFormat = new Intl.DateTimeFormat("en-GB", {
hour: "2-digit",
minute: "2-digit",
second: "2-digit"
});
console.clear();
console.log(timeFormat.format());
by David Storey
var timeFormat = new Intl.DateTimeFormat("en-GB", {
hour: "2-digit",
minute: "2-digit",
second: "2-digit"
});
console.clear();
console.log(timeFormat.format());