js tolocalestring with hours code example
Example: js tolocalestring with hours
var dateWithouthSecond = new Date();
dateWithouthSecond.toLocaleTimeString('pt-BR', {hour: '2-digit', minute:'2-digit'});
var dateWithouthSecond = new Date();
dateWithouthSecond.toLocaleTimeString('pt-BR', {hour: '2-digit', minute:'2-digit'});