urish / angular-moment

Moment.JS directives for Angular.JS (timeago and more)
MIT License
2.6k stars 397 forks source link

Allow amDateFormat to work with custom formatted input date strings #162

Closed jblashka closed 9 years ago

jblashka commented 9 years ago

The amDateFormat filter only works with date strings that follow a known, standard date format. If I'm trying to use that filter on a differently formatted time string it just fails.

This adds an inputFormat parameter to the amDateFormat filter and allows the filter to use the angularMomentConfig.format variable to set a different format to expect date inputs to follow.

urish commented 9 years ago

Looks good, thanks!

urish commented 9 years ago

Released as 0.10.3