react-tailwindcss-datepicker icon indicating copy to clipboard operation
react-tailwindcss-datepicker copied to clipboard

Troubles with values

Open tomg55555 opened this issue 1 year ago • 0 comments

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:

Screenshot 2024-09-25 alle 03 36 05

How can I got somthing like like "YYYY-MM-DD"?

tomg55555 avatar Sep 25 '24 01:09 tomg55555