Created
March 31, 2015 09:57
-
-
Save andreaseriksson/534aadc7d0eb1bb98aa3 to your computer and use it in GitHub Desktop.
Formated date-helper
This file contains hidden or 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
/* global moment:true */ | |
import Ember from 'ember'; | |
export function formattedDate(date, format) { | |
return moment(date).format(format); | |
} | |
export default Ember.Handlebars.makeBoundHelper(formattedDate); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment