Skip to content

Use moment.js for date parsing to allow more format options #70

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

jvarho
Copy link
Contributor

@jvarho jvarho commented Dec 15, 2016

This removes about a hundred lines of code while adding D and M format options (allowing 1-2 digit date and month).

It does it by porting the date parsing code to use moment.js. If that is not acceptable I can write the parsing code for these formats like the existing ones, but this would greatly simplify any further format additions.

@wehriam
Copy link
Contributor

wehriam commented Mar 21, 2017

moment.js is fantastic but unfortunately a very heavy (~17k) dependency.

Many thanks for the PR but to broaden the use case of this library I'd like to avoid this level of overhead.

@wehriam wehriam closed this Mar 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants