Skip to content
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

Allow to pass date format for date picker #5

Closed
hlavacek opened this issue May 21, 2018 · 2 comments
Closed

Allow to pass date format for date picker #5

hlavacek opened this issue May 21, 2018 · 2 comments

Comments

@hlavacek
Copy link

As I understand, at the moment the date format for date picker is hardcoded as 'EEE, MMMM d, yyyy'. Would it be possible to pass it as prop from outside to customise the date displayed?

Maybe reuse moment.js for formatting or similar library (though it introduces a dependency).

@serle
Copy link

serle commented May 27, 2018

or allow a date formatting arrow function (Date) => String to be passed in as a property

@chingyawhao
Copy link
Owner

Done
Check the latest npm version

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

No branches or pull requests

3 participants