Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript hours minutes seconds

    var myDate = new Date().toTimeString().replace(/.*(d{2}:d{2}:d{2}).*/, "$1");
    console.log(myDate)
//using regex
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #hours #minutes #seconds
ADD COMMENT
Topic
Name
3+5 =