I have this date and time format 1/1/2000 20:00:00
and would like to only get the time in this form 20:00 PM
or 08:00 AM
How can I format it as hh:mm a to my date?
I get it this way:
var momentDate = moment($scope.workshop.hour, 'YYYY-MM-DDTHH:mm:ss');
var jsDate = momentDate.toDate();
jsDate.toLocaleString();