Answers for "get minutes with 2 numbers"

0

get minutes with 2 numbers

var date = new Date("2012-01-18T16:03");

console.log( (date.getMinutes()<10?'0':'') + date.getMinutes() );
Posted by: Guest on April-23-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language