I’m trying to use the moment.js library to format some dates in my app; but I’m unable to get anything working at all. Do I need to write a directive? I really have no idea where to start in hooking this in and I’m getting frustrated trying things that don’t work.
Current view that has unformatted date
<div data-ng-if="thing.date">{{thing.date}}</div>
And all I want to do is format that date in my view
Excellent, creating a filter(s) worked like a charm.
I was unable to use the built in date functions as I needed to pass single month integers and various other single digits to format specifically on say month: 8 without any additional params.