-
-
Save newz2000/b0c424c2bb23296ea2e7 to your computer and use it in GitHub Desktop.
formatDate helper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hbs.registerHelper('formatDate', function(date) { | |
return moment(date).fromNow(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment