Hi,
My Datepicker’s dateFormat
is set to MM/DD/YYYY
but when I type “12252023”, it parses the date string as “08/23/1226” instead of “12/25/2023”
What can I do to allow the user to type date strings without delimiters?
Hi,
My Datepicker’s dateFormat
is set to MM/DD/YYYY
but when I type “12252023”, it parses the date string as “08/23/1226” instead of “12/25/2023”
What can I do to allow the user to type date strings without delimiters?
Hi! You can specify the type of the input through inputProps
as stated here.
const inputProps = {
type: 'date',
};
Add it to the Datepicker.
<Datepicker controls={['calendar']} inputComponent="input" inputProps={inputProps} />
Leave a feedback if this is what you’re looking for.