Add props to config datepicker year format
See original GitHub issue- 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'
}}
>
Issue Analytics
- State:
- Created 5 years ago
- Comments:18 (3 by maintainers)
Top Results From Across the Web
Add props to config datepicker year format - Issuehunt
To display year from system calendar depend on moment format. for example Buddhist, Jalaali, Hijri, Taiwan. Now we can change input display format...
Read more >DatePicker date input with custom format - Stack Overflow
Just use the prop dateFormat="dd/MM/yyyy". Example : <DatePicker selected={ ...
Read more >Date Format Cheat Sheet—How To Format Dates React ...
Today we will break down common date and time formats and share some handy tips for using KendoReact DatePicker.
Read more >React custom datepicker: Step-by-step - LogRocket Blog
The calendar builder function takes a month and year as arguments, then returns an array of 42 elements, each representing a calendar date...
Read more >Datepicker Widget - jQuery UI API Documentation
The jQuery UI Datepicker is a highly configurable plugin that adds datepicker functionality to your pages. You can customize the date format and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
What’s the status of this? Still up for grabs?
Why this issue is closed it’s not solve any the problem. 😢