https://github.com/ant-design/ant-design/issues/10644Go to Github

FundedView inAdd props to config datepicker year format#10644

kengonlinecreated the issue 3 months ago

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

To display year from system calendar depend on moment format. for example Buddhist, Jalaali, Hijri, Taiwan.

Now we can change input display format by prop format but we can't change date on calendar.

What does the proposed API look like?

When I use moment plug-in like this https://github.com/behrang/moment-jalaali I can use year format jYYYY to display Jalaali year.

<DatePicker
    format={'jD/jM/jYYYY'} // Input display format will change to Jalaali year.
    calendarFormat={{
        year: 'jYYYY', // Config year format on calendar
        month: 'MM'
    }}
>

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->

Logs

  1. loadbalance-sudachi-kunfunded $256about 1 month ago
  2. boostiofunded $602 months ago
  3. boostiofunded $153 months ago
  4. 0maxxam0funded $53 months ago

Total Fund

$336

You will get $235.2 when resolving this issue

Funded by

3

Work status

No one is working