Date formatting

Hi, not sure how tp format the question but here I go…
I want to use a variable to replace the date formatting in my text/content of my list item {{trip.tripdate| date: ‘dd/MM/yyyy’}}

How do I do this?

So instead of the date format being hard coded ‘dd/MM/yyyy’ it needs to use a value based on a selection the user made stored on the settings object…
settings.dateFormat stored in the $scope.dateFormat of the page.

LoL got it …{{trip.tripdate| date: dateFormat}}
coffee does the trick