We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce9d1ba commit 14b3ceaCopy full SHA for 14b3cea
src/Date/dateUtils.tsx
@@ -234,6 +234,13 @@ export function useInputFormat({
234
return React.useMemo(() => {
235
// TODO: something cleaner and more universal?
236
const inputDate = formatter.format(new Date(2020, 10 - 1, 1))
237
+
238
+ if (inputDate.includes('٢٠٢٠')) {
239
+ return inputDate
240
+ .replace('٢٠٢٠', 'YYYY')
241
+ .replace('١٠', 'MM')
242
+ .replace('٠١', 'DD');
243
+ }
244
return inputDate
245
.replace('2020', locale === 'pt' ? 'AAAA' : 'YYYY')
246
.replace('10', 'MM')
0 commit comments