I am using date filter to format my date. but it works fine for date only. But when I go with date time its not working:
<tr class='clickable-row' ng-repeat="exam in examlist" ng-click="gotoProfile(exam.id)">
<td class="custom-icon-size" style="border-left: 0px solid #e0e0e0;">{{ $index + 1 }}</td>
<td class="custom-icon-size text-left">{{ exam.examtitle }}</td>
<td class="custom-icon-size">{{ exam.batchtitle }}</td>
<td class="custom-icon-size">{{ exam.standard }}</td>
<td class="custom-icon-size">{{ exam.examdate | date:"dd MMMM , yyyy" }}</td>
<td class="custom-icon-size">{{ exam.totalmarks }}</td>
<td class="custom-icon-size">{{ exam.status }}</td>
<td style="border-right: 0px solid #e0e0e0;">{{ exam.lastupdate | date:"dd MMM , yyyy hh:mm a" }}</td>
this {{ exam.examdate | date:"dd MMMM , yyyy" }} currently but {{ exam.lastupdate | date:"dd MMM , yyyy hh:mm a" }} it remain the same. like 2017-03-16 12:02:15
Thanks
exam.lastupdatemay not be a date object. It may be just a string