Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

tolocale string no 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: #tolocale #string #seconds
ADD COMMENT
Topic
Name
8+4 =