luifMoment

A filter to display a date, a moment or a string using the formats provided by momentjs

Will try to transform the input to a moment, if the resulting moment is not valid it will just return the input

If none is provided, will use the format LLL

Usage

{{ myValue | luifMoment : "LL" }}
{{ myValue | luifMoment : myFormat }}

enter '1.11:30:00' or 'PT35H30M' or such like

Set myValue to : new Date() moment().startOf('week')

Formatted MyValue : {{ myValue | luifMoment : myFormat }}