How do i extract the time using moment.js?
\"2015-01-16T12:00:00\"
It should return \"12:00:00 pm\". The string return will be passed to th
You can do something like this
var now = moment(); var time = now.hour() + ':' + now.minutes() + ':' + now.seconds(); time = time + ((now.hour()) >= 12 ? ' PM' : ' AM');