Is there any attribute we can use to disable future dates in react admin Date Input filter.
<DateInput
source="name"
label="name"
alwaysOn
validate={getValidate(props)}
/>
Is there any attribute we can use to disable future dates in react admin Date Input filter.
<DateInput
source="name"
label="name"
alwaysOn
validate={getValidate(props)}
/>
React-admin uses html5 date input under the hood, so you can use the min and max attributes for that. See Restrict future dates in HTML5 date input.
we can pass as prop the property inputProps and send min and max
<DateTimeInput
source="end_time"
label="end_time"
fullWidth
inputProps={{
min: '2022-04-22T00:00',
max: '2022-04-28T00:00',
}}
/>