diff --git a/README.md b/README.md index 0315202..3786e9a 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,20 @@ The user will initially see "a few seconds ago", and about a minute after the span will automatically update with the text "a minute ago", etc. +amDateFormat filter +---- + +Format dates using moment.js format() method. Example: + +```html +{{message.time | amDateFormat:'dddd, MMMM Do YYYY, h:mm:ss a'}} +``` + +This snippet will format the given time as "Monday, October 7th 2013, 12:36:29 am". + +For more information about Moment.JS formatting options, see the +[docs for the format() function](http://momentjs.com/docs/#/displaying/format/). + License ----