Answers for "get am pm moment"

0

moment get time am pm

console.log( moment('Mon 03-Jul-2017, 11:00 AM', 'ddd DD-MMM-YYYY, hh:mm A').format('hh:mm A') );
console.log( moment('Mon 03-Jul-2017, 11:00 PM', 'ddd DD-MMM-YYYY, hh:mm A').format('hh:mm A') );
Posted by: Guest on June-02-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language