brilliant-orangeB
Refine2y ago
3 replies
brilliant-orange

How Can I change the date format?

<LocalizationProvider dateAdapter={AdapterDayjs}>
                  <Grid container spacing={2}>
                    <Grid item xs={2} sm={2}>
                      <DatePicker
                        {...register('start_date')}
                        label="주문 시작일"
                        value={startValue}
                        name="start_date"
                        onChange={(value) => {
                          setStartValue(value)}}
                        slotProps={{ textField: { size: 'small' } }}
                      />
                    </Grid>

I want YYYY-MM-DD format.
Was this page helpful?