Closed ghost closed 2 years ago
In the range mode, you will receive the parameter as an array [FirstDate, SecondDate | null] | null
.
In your example, you are calling getFullYear
on the Array
and not on the Date
instance.
Also, you can just pass a shorter format via string, simply add a prop format="M-d-Y"
, this should match your format
I want to input the format as
'03-15-2022 07:30 03-17-2022 08:30'
How should it be set up?components
error