I\'m currently attempting to display the user\'s time without displaying the seconds. Is there a way I can do this using Javascript\'s .toLocaleTimeString()?
Doing s
You can try this, which is working for my needs.
var d = new Date(); d.toLocaleTimeString().replace(/:\d{2}\s/,' ');
or
d.toLocaleString().replace(/:\d{2}\s/,' ');