Displaying time in AM/PM format with Angular grid

angularjs

Solution

It is simple, see this:

{ field: 'createdOn', displayName: 'Created On', width: '180px', 
 cellTemplate: 
"<div class='ngCellText'>{{row.entity.createdOn | date:'MM/dd/yy h:mm:ss a'}}</div>" },

That's it

For more detail about the date format see this

Problem

How would I format an Angular grid that is receiving entities that have a date time property called startTime and endTime to show time in an AM/PM format? Right now I am using: ``` { field: 'StartTime', displayName: 'Start Time', cellFilter: 'date:\'hh:mm tt\''}, { field: 'EndTime', displayName: 'End Time', cellFilter: 'date:\'hh:mm tt\''}, ``` and obviously the 'tt' is showing instead of AM or PM. Has anyone done AM/PM in an Angular ngGrid before?

Original source