Unix timestamp of now
1399251115201
Current time with formatting
20:51:55
Specific time with formatting
18:53:23
Specific unix timestamp with formatting
20:51:55
Specific datetime with formatting
Wednesday, 29 June 2011 18:53:23 -0400
Language support
Wednesday, 29 June 2011 18:53:23 -0400
Is the added date valid?
true
Input as a string, with defined format
May 2014
Multiple formats, moment.js tries to figure out what's the correct one
May 2014
Specific datetime with formatting, converted to utc
Wednesday, 29 June 2011 18:53:23 -0400
Getters and setters, example: get week of year, depends on lang (see (moment.js)[http://momentjs.com/docs/#/get-set/] documentation for more details)
The week number in Finland is 27
Manipulate, example: add days, (see (moment.js)[http://momentjs.com/docs/#/manipulating/] documentation for more details)
Wednesday-Wednesday
Manipulate, example: subtract years, (see (moment.js)[http://momentjs.com/docs/#/manipulating/] documentation for more details)
2011-2011
Manipulate, example: startOf month, (see (moment.js)[http://momentjs.com/docs/#/manipulating/] documentation for more details)
Wednesday, 29 June 2011 18:53:23 -0400
Manipulate, example: endOf week, (see (moment.js)[http://momentjs.com/docs/#/manipulating/] documentation for more details)
Wednesday, 29 June 2011 18:53:23 -0400
Time from now
After this page is rendered, the week will end a few seconds ago
Time from X
This helper was coded in 3 years
Calendar time
The coding started 06/29/2011
Diff
The difference between those two moments is 89863112210
Days in Month
This month has 31 days
Days in Month
This month has 31 days
Duration, with humanization
The event will last 3 hours
The moment.js has plenty of features and these examples are just the tip of the iceberg of what moment.js can do.
Just remember, in {{moment method=null}} means moment().method() and {{moment somedate method="something"}} means moment(somedate).method("something"). Also, the handlebars syntax does not let you pass some values (like arrays and objects) directly from the tag, so you may need to use the yaml frontmatter to run those.