Skip to content

[DateTimePicker] Add month picker selection only #1993

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
michaelmaillot opened this issue May 11, 2025 · 3 comments
Open

[DateTimePicker] Add month picker selection only #1993

michaelmaillot opened this issue May 11, 2025 · 3 comments
Assignees
Labels
status:working-on-it Known issue / feature being addressed. Will use other "status:*" labels & comments for more detail. type:enhancement New feature or enhancement of existing capability

Comments

@michaelmaillot
Copy link
Collaborator

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.

@michaelmaillot michaelmaillot added help wanted type:enhancement New feature or enhancement of existing capability labels May 11, 2025
@Sandeep-FED
Copy link

Hi @michaelmaillot, I will take this :)

@miguelisidoro
Copy link

Hi @michaelmaillot ,

Thanks for taking this. :)
When do you think this will available?

Thanks

@michaelmaillot michaelmaillot added status:working-on-it Known issue / feature being addressed. Will use other "status:*" labels & comments for more detail. and removed help wanted labels May 22, 2025
@michaelmaillot
Copy link
Collaborator Author

Hi @michaelmaillot, I will take this :)

Thanks @Sandeep-FED, it's all yours!

@miguelisidoro as said in the original issue, this is an open source project so we can't establish an ETA as this is done on our spare time. You'll be informed once the feature is available in a beta release, then eventually in the next release for which we don't have a date to communicate for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:working-on-it Known issue / feature being addressed. Will use other "status:*" labels & comments for more detail. type:enhancement New feature or enhancement of existing capability
Projects
None yet
Development

No branches or pull requests

3 participants