So this is how I get the date time:
for (var i = 0; i < response.length; i++) {
console.log("Time: "+moment(response[i].feeding_1).format("hh:mm A"))
}
How can I display it as 06:00 AM?
I tried with moment js, but didn't work quite well like this:
console.log("Time: "+moment(response[i].feeding_1).format("hh:mm A"))
I get invalid date for this..
also in HTML i did this:
<td>
<div>{{pen.feeding_1 | date: 'hh:mm a'}}</div>
</td>
Sorry for lack of code