Answers for "current time 12 hour clock javascript"

4

js get time in am

var time = new Date();
console.log(
  time.toLocaleString('en-US', { hour: 'numeric', hour12: true })
);
Posted by: Guest on April-28-2020

Code answers related to "current time 12 hour clock javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language