In my project the data is coming to front-end as a json object as shown below:
{
id: 1,
meetingName: "Meeting 1",
meetingDate: "2018-02-21",
startTime: "10:00:00"
}
<td>{{meeting.startTime|date:"h:mma"}}</td>
I used the above method to format the date in angularjs code as 10:00 AM.
But the start time is still shown as 10:00:00. Why is it not formatting the date according to the format?
stringand not aDateobjectDataobject. it should be a format ofDateobject (eg: startTime: "2018-03-05T10:22:24.361Z") to format using angularjs date formats. Thank you for your answers.