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 dateInput to have an unspecified value #896

Closed
aronatkins opened this issue Jul 16, 2015 · 2 comments
Closed

Allow dateInput to have an unspecified value #896

aronatkins opened this issue Jul 16, 2015 · 2 comments

Comments

@aronatkins
Copy link
Contributor

aronatkins commented Jul 16, 2015

It would be nice to allow a dateInput control to have an unspecified value. Right now, if you provide value=NULL, you get "today" by default.

The use case is one where I want to know if the user has made a explicit choice of a date value. Not choosing a date value could mean that a search is unbounded, for example.

@hadley
Copy link
Member

hadley commented Aug 6, 2015

as.Date(NA) would be a natural value to use here

@gmeurice
Copy link

gmeurice commented Aug 3, 2016

I've tried to use the as.Date(NA), but still, when the user erase the date from dateInput widget, the returned value is still Sys.Date(), and not "", as I expected.

How could a user can choose to leave the fields empty (or to erase a wrong date input to leave it empty) whithout systematically returning "Sys.Date()" ?

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

5 participants