#31 Format Dates with MomentJs


You can use the awesome moment.js in your ember app using the ember-moment addon.  First thing, install it:

There are several template helpers included, here are a few examples and their outputs

Last Monday at 12:00 AM
You can also use this in your javascript with an import statement:

Credits & Links

ember-moment (thank the author)

Some Love ❤❤❤

If you are enjoying my daily tips please spread the word with this one-click tweet.
If you do NOT like the tips then please reply to this email and let me know.

Published by

Emad Ibrahim

Author of asp .net MVC & TDD, entrepreneur, passionate technologist, programmer and productivity nut. more at http://t.co/oSJXPvzu