Answers for "js all time formats"

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
5

moment to javascript date

let now = moment()
let now = now.toDate()
Posted by: Guest on March-22-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language