Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js tolocalestring without seconds

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