<Grid>
<DateTimePicker
renderInput={(params) => <TextField {...params} />}
label='공구 시작일'
value={startDt}
onChange={(newValue) => {
setStartDt(format(newValue, 'yyyy-MM-dd hh:mm:ss'))
}}
inputFormat='yyyy-MM-dd hh:mm a'
/>
</Grid>
I try to get the time value using the material Ui, but AM and PM are not working. Only AM is brought ex) PM 11:11 -> AM 11:11 is automatically changed. I don't know what the problem is.
I clicked PM, but value is only AM:
