Questions tagged [muipickersutilsprovider]

7 questions
3
votes
0 answers

Format month inside material ui picker

How to format month inside month view in material-ui picker? By default they are displayed as "short" (Jan) and I want to display "long" names (January). I followed their documentation but couldn't figure out why it doesn't work. I am using date-fns…
1
vote
0 answers

Using mui-pickers keyboardatepicker/keyboardatetimepickers, if giving direction:"rtl" then date format "dd/MMM/yyyy" giving wrong date format

CodeSandbox Link I need direction: I am using "rtl" for the Arabic language, but as I used dateformat "DD/MMM/YYYY" it is giving me output as MMM/DD/YYYY and also if you use keyboarddatepickertime with HH:mm then it is giving date in the format…
1
vote
0 answers

Hide focus cursor in the KeyboardDateTimePicker

I have a problem hiding the focus cursor in the KeyboardDateTimePicker. I don't want to see the blinking cursor show in the KeyboardDateTimePicker. I have tried the below coding, cannot work.
Fatt Sky
  • 650
  • 3
  • 11
1
vote
0 answers

Dynamic field parse date value with react-hook-form using MUI DatePickers

I´m not being able to pass the parsed date to the submit object of react-hook-form. I need to handle the parsing at the field level because this is a dynamic form so I can´t control which fields the user will use. I´m using "setValue()", and I can…
1
vote
2 answers

TypeError: Utils is not a constructor

I am using MuiPickersUtilsProvider from @material-ui/pickers@ v-3.2.10 and using like followings: import DateFnsUtils from '@date-io/date-fns' import { DateTimePicker, MuiPickersUtilsProvider } from '@material-ui/pickers'
0
votes
1 answer

Creating a react container component in typescript for a MuiPickersUtilsProvider component

I have a component that is responsible for a date time picker. I wish that another parent component call this child date picker component so I can have a component of "wrapper/container" and one just for the data picker. Moreover I am not having…
Catarina Nogueira
  • 1,024
  • 2
  • 12
  • 28
0
votes
0 answers

How to override label naming without specifying a DateUtil(moment, datefns, etc)

I'm creating a custom component with custom styles using KeyboardDatePicker from @material-ui/pickers. I need to customize the labels. I know that I can use getWeekdays based on https://material-ui-pickers.dev/guides/formats and using…
Jeremy410
  • 41
  • 1
  • 7