Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

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

Merged
merged 3 commits into from
Aug 20, 2015

Conversation

jblashka
Copy link
Contributor

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 added a commit that referenced this pull request Aug 20, 2015
Allow amDateFormat to work with custom formatted input date strings
@urish urish merged commit 295f892 into urish:master Aug 20, 2015
@urish
Copy link
Owner

urish commented Aug 20, 2015

Looks good, thanks!

@urish
Copy link
Owner

urish commented Sep 5, 2015

Released as 0.10.3

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants