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
This works for me:
var date = new Date(); var string = date.toLocaleTimeString([], {timeStyle: 'short'});