Need to show only one month in range picker selection antd
See original GitHub issueI’m using antd calendar RangePicker for my react app.i want to show only one month of calendar dropdown upon selection, instead of two months default.
<div className="DatePickerBar">
<RangePicker format="YYYY-MM-DD"
className="DateInput"
value={[moment(dateRange.from), moment(dateRange.to)]}
onChange={this.onRangeChange}
allowClear={false}
/>
</div>
codesandbox: wvt2t.csb.app
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Need to show only one month in range picker selection area ...
I'm using antd calendar RangePicker for my react app.i want to show only one month of calendar dropdown upon selection, instead of two ......
Read more >Need to show only one month in range picker selection area ...
First thing that comes to my mind is using the showTime feature, but re-formatting to exclude hour and minute selection(default), i.e.:
Read more >DatePicker - Ant Design
To select or input a date. When To Use. By clicking the input box, you can select a date from a popup calendar....
Read more >DateRangePicker - React Suite
If <DateRangePicker> does not satisfy the business scenario in which you select the time range, you can use two DatePicker combinations.
Read more >Date Range Picker for Bootstrap
The Date Range Picker can be turned into a single date picker widget with only one calendar. In this example, dropdowns to select...
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 Free
Top 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
If anyone has the same problem, I solve it with this:
@samridhi-J
I think you can fix it by doing
instead of