I need to format time, for example I have a value 01:05
I need to add am
or pm
to time.
$('.clockpicker').clockpicker({
afterDone: function() {
var time = $('#time').val();
console.log(moment(time ).format('h:mm a'));
}
});