I want to form input format MM/DD/YYYY. I tried some methods but I can't do that. below I have mentioned that code.
<Input
type="text"
pattern="\d{1,2}/\d{1,2}/\d{4}"
name="date"
value=""
/>
above mentioned code, I tried but it's not working...
This code is working, but i get DD/MM/YYYY format. i need the MM/DD/YYYY format in the input field so how can i achive that.
type="date"
name="currentPeriodStart"
id="currentPeriodStart"
value={formState.currentPeriodStart || ''}
onChange={onChangeDate}
/>```