Questions tagged [mui-x-date-picker]

No instructions have been provided for this tag at the moment.

Encountering an issue with reading properties of undefined (specifically 'name') when implementing MUI DatePicker

Currently, I have implemented the MUI datepicker in this manner: import { DatePicker } from '@mui/x-date-pickers/DatePicker' <DatePicker label="Start Date" name="startDate" inputFormat="dd/MM/yyyy" render ...

Modifying the default value setting in MUI Datepicker

Currently, I am utilizing version @mui/x-date-pickers ^6.17.0. Here is the custom date picker I am using: https://i.stack.imgur.com/k8nF1.png Upon clicking the input field, the placeholder switches and a value gets appended. However, modifying the input ...

Encountering errors in Vite SSR build when using MUI icons and date-time-picker

I am working on a VITE ssr playground with additional MUI packages available on GitHub. When I import any MUI icon and adapter from the date-time-picker, everything works fine in development mode. However, when I build the project, the server stops with e ...

`Why Mui Datepicker always shows the wrong date?`

Currently utilizing the Mui Datepicker library from @mui/x-date-pickers/DatePicker. Below is a snippet of my code <LocalizationProvider dateAdapter={AdapterDateFns}> <DatePicker inputFormat="MM/dd/yy" value={date} minDate= ...

Proper method for typing the generics of DatePickerProps belonging to the DatePicker component in mui-x library

I have a component called CustomDatePicker which has been configured for localization as shown below: function CustomDatePicker(props: DatePickerProps<unknown> & React.RefAttributes<HTMLDivElement>) { return ( <StyledDatePicker ...

Capture and set the new value of the Datetime picker in MUI upon user's acceptance click

import React from 'react' import { Stack, Typography } from '@mui/material' import { DateTimePicker } from '@mui/x-date-pickers/DateTimePicker' import { renderTimeViewClock } from '@mui/x-date-pickers/timeViewRenderers' import dayjs, { Dayjs } from 'dayjs' ...