Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
Documentation for amDateFormat filter
Browse files Browse the repository at this point in the history
  • Loading branch information
urish committed Oct 6, 2013
1 parent fe170f8 commit d380ab9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
<span>{{message.time | amDateFormat:'dddd, MMMM Do YYYY, h:mm:ss a'}}</span>
```

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
----

Expand Down

0 comments on commit d380ab9

Please sign in to comment.