Reputation: 43
i'm using multi language site. so obviously i have two date format.
backEnd sever will convert Date based on my front lang request. now my problem is to convert Mui DatePicker calendar based on my lang.
i tried to use dateAdapter but the problem is this method will convert the calendar BUT convert the date too, which i dont need as the Date is converted from server already.
<MuiLocalizationProvider dateAdapter={lang === 'fa' ? AdapterDateFnsJalali : AdapterDateFns}>
{children}
</MuiLocalizationProvider>
so in summery i want to change the mui DatePicker calendar without changing the date itself.
Upvotes: 0
Views: 30