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 to get date from picker, if opened and closed picker on done event without any changes? #82

Open
kagmanoj25 opened this issue Mar 26, 2019 · 1 comment

Comments

@kagmanoj25
Copy link

Picker does not return any value on done button while we don't select anything and just press done button. If i want to get default selected value on done press event then what should i do?

@TayyabAli652
Copy link

you should set the current date in var like var currentDate = Date()
then set that variable to your default label or text. Then when you pick any date from picker then update value of currentDate to picked date like currentDate = pickableDate

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

2 participants