Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js get hh mm ss

const time = new Date();
console.log(
  time.toLocaleString('en-US', { 
    hour: '2-digit', 
    minute: '2-digit',
    second: '2-digit',
    hour12: true 
  })
);  
 
PREVIOUS NEXT
Tagged: #js #hh #mm #ss
ADD COMMENT
Topic
Name
1+7 =