Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get hours and minutes and seconds from date in javascript

const date = new Date();
const hhmmss = date.toLocaleTimeString();
console.log( hhmmss ); // 12:34:21
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #hours #minutes #seconds #date #javascript
ADD COMMENT
Topic
Name
7+4 =