react-bootstrap-datetimepicker
react-bootstrap-datetimepicker copied to clipboard
enhancement: choose only year and month, day is preset
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.
+1 for this feature. Are there any plans to implement it? We would be happy to help with the implementation.
I'm working on this at the moment.
+1 for this feature.
ok....can i use this feature now.? :(
@AlexJake: this is open source. Please be considerate and maybe even create a pull request
@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.