react-bootstrap-datetimepicker icon indicating copy to clipboard operation
react-bootstrap-datetimepicker copied to clipboard

enhancement: choose only year and month, day is preset

Open barbalex opened this issue 10 years ago • 6 comments

I love the way viewMode='months' lets the user choose a month.

In my use case the user chooses only a month. The app then extracts year and month from the date and discards all other information on the date.

Instead of presenting a field for year and one for month it would be much nicer to have the user choose a month in react-bootstrap-datetimepicker.

I can imagine a new prop presetDay. If I set it to 1 react-bootstrap-datetimepicker would close after the user chooses a month and return a date where the day is set to the first day of the month.

barbalex avatar Oct 28 '15 14:10 barbalex

+1 for this feature. Are there any plans to implement it? We would be happy to help with the implementation.

andi-myob avatar Nov 17 '15 00:11 andi-myob

I'm working on this at the moment.

camjackson avatar Nov 19 '15 03:11 camjackson

+1 for this feature.

BobReal0822 avatar Jan 10 '16 06:01 BobReal0822

ok....can i use this feature now.? :(

flyingcrp avatar May 10 '16 10:05 flyingcrp

@AlexJake: this is open source. Please be considerate and maybe even create a pull request

barbalex avatar May 10 '16 11:05 barbalex

@AlexJake - it doesn't seem that the existing PR for this issue is going to be merged any time soon. You could look at using our fork (see the PR) if you really need this feature. It doesn't have a proper NPM package though.

camjackson avatar May 17 '16 06:05 camjackson