From d380ab95df0b2025f5490ac2b633b5cb37a1303a Mon Sep 17 00:00:00 2001 From: Uri Shaked Date: Mon, 7 Oct 2013 00:38:47 +0300 Subject: [PATCH] Documentation for amDateFormat filter --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 ----