I want to extract a formatted time string from an incoming json data string but it is necessary to use moment.js in AngularJS to do this?
HTML Code:
<div ng-repeat="event in events | limitTo:1">
<div class="row spot">
<span class="orange">When</span><br>
<span class="large-font">{{event.Date}}</span> <span>{{moment(event.StatrtTime).format('hh:mm:ss a')}}</span><br>
<span class="orange">Where</span>
</div>
Incoming JSON:
events{
"name":"Party",
"StartTime":"2/19/2016 7:30:00 AM"
}
But this is not working.