Questions tagged [mui-x-date-picker]

30 questions
0
votes
0 answers

MUI Date Pickers + Dayjs = TypeError: pt.isUTC is not a function

Getting this error when I entered a specific component Here are the packages that I have installed "@mui/lab": "^5.0.0-alpha.122", "@mui/material": "^5.10.15", "@mui/system": "^5.11.12", "@mui/utils": "^5.10.15", "@mui/x-data-grid":…
0
votes
0 answers

Mui date range picker always select first day of year

Im working on a react porject using mui components I have this dateRangerPicker from mui components
0
votes
0 answers

How to make events on CalendarDate in MUI-X v6

Can someone teach me how to make events on my CalendarDateIm stuck on here, I dont know how to use it in v6 I want to make events on my CalendarDate, but I dont know how to use slots and slotsProps. Please help me, Thankyou
0
votes
0 answers

is it possible to add a button in the mui date calendar?

I want to add button in the mui date calendar header section. Will it be possible ? Demo project link. See the picture for more clarification
0
votes
0 answers

Mui custom yearCalendar inner text

As I want to custom the inner text in Mui @mui/x-date-pickers": "^6.2.1",I found that the slots of the slots of MobileDatePicker only have the day name how can I specify the year calendar and render the 'Now' text instead of current year? I have…
0
votes
1 answer

Default Year Value for MUI X datepicker

I have a request for one of my projects for my client to have a default year selected for the datepicker in MUI X. Is it possible to have the datepicker to default to lets say 2023/MM/DD where they can change the year but its by default selected to…
0
votes
0 answers

Datepicker MUI X

So I am trying to use Datepicker but I having a hard time changing the style of anything. I am trying to change the border-radius and size to be small from mui sizes.
0
votes
0 answers

MUI X Date Picker v5 LocalizationProvider first day of week

I want to set localization in app different to user's localization, in a way that first day of the week is always Monday, while everything else can be set based on user's localization. I'm using MUI DatePicker and I tried bunch of options. Code…
Rade Tomovic
  • 298
  • 2
  • 14
0
votes
0 answers

Can't render DatePicker in add new validators popup

When I cumstom a component that import { DatePicker } from '@material-ui/pickers and if I use Validation => add new Validators,the popup can't render the DatePicker and throw `caught Error: Invalid hook call. Hooks can only be called inside of the…
0
votes
2 answers

How to remove default selected date in Calendar @material-ui/pickers?

I am using the calendar in my project https://material-ui-pickers.dev/demo/datepicker. When I open the calendar by clicking a textbox for the very first time, I don't want today's date to be selected and want it to be empty. Can anyone help me with…
0
votes
1 answer

i am getting error after i selecting the date from @material-ui/pickers in React.js

I have a form in this i create date picker field, i set by default as using new Date() its working fine. But when i select any date i am getting this error. when i am using {TextField} component then it works fine but i can't set default value as a…
Adnan Shaikh
  • 37
  • 10
0
votes
0 answers

React MUI X Date Picker can't show date time

Strange bug. Format 'DD/MM/yyyy HH:mm' shows 27/10/2021 00:00, but 'HH:mm' shows 21:47 (right time) Do you know what can be the issue?
Mediator
  • 14,951
  • 35
  • 113
  • 191
-1
votes
1 answer

In Mui x datepicker how can i set popper direction of Datepicker?

My Datepicker always pop in bottom left of my input. how can i change direction to calendar icon instead. i have try for many hours enter image description here
-2
votes
1 answer

How can I format date in x-date-picker?

I've tried to use format="l" format="m/d/yyyy" I want this format m/d/yyyy, I mean I'd like the day and the month without zeroes. How I do that? P.S.: I am using this datepicker in the material UI datagrid. I tried to check in the dayjs/datepicker…
1
2