pnp / pnp/sp-dev-fx-controls-react

[DateTimePicker] Add month picker selection only

Open
#1,993 7 comments 0 reactions 1 assignee View on GitHub

@Sandeep-FED is already working on this.

Since May 22, 2025.

status:working-on-it type:enhancement
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 DateTimePicker control 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.