Open Sparticuz opened 2 months ago
Changing that only changes the initial display, but when I select a day it reverts back to 00:00
Simplely giving the initial value with new Date()
The initial value will be the current time.
https://github.com/user-attachments/assets/db76c1fa-2161-4c76-a6ff-61a60ae6fe5b
const DatetimePickerDemo = () => {
const [date, setDate] = useState<Date | undefined>(new Date()); // <--- here
return <DateTimePicker value={date} onChange={setDate} />;
};
Hmm, not quite what I was looking for as it is no longer undefined before clicking.
Feature description
Is there a way to set an initial time value besides 00:00?
Affected component/components
datetime picker
Additional Context
No response
Before submitting