Skip to content

Instantly share code, notes, and snippets.

@mrloop
Created January 21, 2015 16:27
Show Gist options
  • Save mrloop/8a2c89ff56ee3041534a to your computer and use it in GitHub Desktop.
Save mrloop/8a2c89ff56ee3041534a to your computer and use it in GitHub Desktop.
date helper
Em.Handlebars.helper 'readable-date', (date, options)->
defaultFormat = "DD MMM YYYY h:mma"
str = moment(date).format(defaultFormat)
new Ember.Handlebars.SafeString(str)
{{readable-date charge.created_at}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment