You must be signed in to watch this lesson.
Moment Library From Now Date
Fullstack Social iOS NodeJS REST
Presenting time and dates in UI is always very difficult as locales and printing functions rarely play nicely together. Instead of using raw dates in the UI, let's go ahead and install Moment.js, a widely used javascript library that formats date in human readable language. In this lesson, we'll first examine how to stamp our objects with a fromNow property. Next we look at the proper way of refactoring our code to handle the importing of Moment.

Comments (0)