research.package icon indicating copy to clipboard operation
research.package copied to clipboard

DateTimeAnswerFormat date boundaries

Open jfkominsky opened this issue 3 years ago • 0 comments

Small feature request: The CupertinoDatePicker underlying DateTimeAnswerFormat supports "minimum date" and "maximum date" arguments that make it so the selected date must be within certain boundaries (there are also minimum year and maximum year arguments that just do this for year, but these are just simplified versions of the minimum and maximum date arguments that take ints instead of datetime objects). It would be helpful if these could be used as optional arguments in the DateTimeAnswerFormat constructor, as it would save the trouble of validating responses after the fact when the date/time needs to be constrained in some way.

jfkominsky avatar May 07 '21 13:05 jfkominsky