pnp / pnp/sp-dev-fx-controls-react
[DateTimePicker] Add month picker selection only
@Sandeep-FED is already working on this.
Since May 22, 2025.
- Dominant language
- TypeScript
- Stars
- 433
- Forks
- 418
- Avg merge
- 5d 6m
- Merged PRs (30d)
- 19
Description
Category
[x] Enhancement
[ ] Bug
[ ] Question
Version
Please specify what version of the library you are using: [3.21.0]
Expected / Desired Behavior / Question
We should be able to select a whole month instead of a single date.
Observed Behavior
Even if the DateTimePicker is based on Fluent UI DatePicker & Calendar components, the control doesn't provide any option to customize it as a month picker.
Steps to Reproduce
- Add
DateTimePickercontrol to a SPFx component
Additional info
This enhancement idea has been raised from #1977.
The updates will be done in the DateTimePicker.tsx file. In the Fluent UI DatePicker component reference, the calendarAs prop renders the Calendar component only when restrictedDates prop is filled, which is not suitable for the enhancement idea. The Calendar component will have to be updated with the isDayPickerVisible prop, which will be set to false in order to make the calendar view displayed with months only.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.