Skip to content

Troubles with values #282

@tomg55555

Description

@tomg55555

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"?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions