Replies: 2 comments 11 replies
-
probably want to use validate function |
Beta Was this translation helpful? Give feedback.
4 replies
-
You can utilize the validate: (date) =>
isWithinInterval(date, { start: minDate, end: maxDate }) ||
`The correct date is within ${format(
minDate,
dateFormat
)} and ${format(maxDate, dateFormat)} interval` Here's a minimal codesandbox to check out a working example: the codesandbox example |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
how do I define a min and max date for TextInput using type date? I'm trying using min and max, but is not validate ;x
Beta Was this translation helpful? Give feedback.
All reactions