Hello there, first of all thanks for the work.
I'm experiencing some troubles using the component as single date picker in a form.
This is how my component looks like:
<DatepickerdisplayFormat={"YYYY/MM/DD"}key={fields.startDate.key}asSingle={true}useRange={false}value={value}readOnly={true}inputName={fields.startDate.name}placeholder="Inserisci data di inizio"onChange={handleValueChange}/>
The problem is that in form control I can handle both strings like "YYYY-MM-DD" or Date types but the value i got looks like this:
Hello there, first of all thanks for the work. I'm experiencing some troubles using the component as single date picker in a form. This is how my component looks like:
<Datepicker
displayFormat={"YYYY/MM/DD"}
key={fields.startDate.key}
asSingle={true}
useRange={false}
value={value}
readOnly={true}
inputName={fields.startDate.name}
placeholder="Inserisci data di inizio"
onChange={handleValueChange}
/>
The problem is that in form control I can handle both strings like "YYYY-MM-DD" or Date types but the value i got looks like this:
How can I got somthing like like "YYYY-MM-DD"?