Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js get time in am

var time = new Date();
console.log(
  time.toLocaleString('en-US', { hour: 'numeric', hour12: true })
);  
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #time
ADD COMMENT
Topic
Name
1+6 =