Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js tolocalestring without seconds

var dateWithouthSecond = new Date();
dateWithouthSecond.toLocaleTimeString([], {hour: '2-digit', minute:'2-digit'});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #tolocalestring #seconds
ADD COMMENT
Topic
Name
7+7 =