A filter to display a date, a moment or a string using the function moment().calendar()
Will try to transform the input to a moment, if the resulting moment is not valid it will just return the input
You can pass a reference date as an argument to the filter. If none is provided or moment cannot parse it, it will use today
Does not support the formats arguments available from momentjs version 2.10.5 onwards
{{ myValue | luifCalendar }}
{{ myValue | luifCalendar : myRefDate }}
myValue relative to today : {{ myValue | luifCalendar }}
myValue relative to myRefDate : {{ myValue | luifCalendar : myRefDate }}