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

How can i set a format? #73

Closed
lXSPandora opened this issue Aug 14, 2017 · 1 comment
Closed

How can i set a format? #73

lXSPandora opened this issue Aug 14, 2017 · 1 comment
Labels

Comments

@lXSPandora
Copy link

Hello,
How can i set a format to the datepicker to pick the data like yyyy-mm-dd.

Example
2017-08-14

@mmazzarolo
Copy link
Owner

mmazzarolo commented Aug 14, 2017

Hello @lXSPandora, this is more a Javascript related question then a react-native-modal-datetime-picker one.
You should handle the date formatting on your own component.
The date returned by react-native-modal-datetime-picker is a plain JS Date object so you can format it using the plain JS Date API, date-fns, Moment.js and similar libraries.

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

No branches or pull requests

2 participants