I want to use DateTimePicker in my project. i want enter time this format: Hour:Minute:second
but Currently, I can only enter 00:00 Hour:Minute.
how can fix it ?
Also, I checked the mui documentation, but I didn't find an answer.
I tried
<DateTimePicker
mask="____/__/__ __:__:__"
format="yyyy/MM/dd HH:mm:ss"
ampm={false}
openTo="year"
views={[
'year',
'month',
'day',
'hours',
'minutes',
'seconds'
]}
/>
but didnt work.
You need to add inputFormat="yyyy/MM/dd HH:mm:ss"