moment is a filter to call format from moment or, if the input is a Date, call Angular's date filter.