Skip to content

Date Picker component usage questions #1977

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
miguelisidoro opened this issue Apr 21, 2025 · 3 comments
Open

Date Picker component usage questions #1977

miguelisidoro opened this issue Apr 21, 2025 · 3 comments

Comments

@miguelisidoro
Copy link

Category

[ ] Enhancement

[ ] Bug

[X] Question

Version

Please specify what version of the library you are using: [ Latest ]

Hi,

I am found the control at https://pnp.github.io/sp-dev-fx-controls-react/controls/DateTimePicker/ that allows us to select a date and a time.

Questions:

1 - Can it be used as a month picker? If so, how?

Example:

Image

2 - Can it be used to select only the data with having to select a time? If so, how?

Thanks!

@miguelisidoro miguelisidoro changed the title Date Picker - Date Picker component usage questions Apr 21, 2025
@michaelmaillot michaelmaillot pinned this issue May 9, 2025
@michaelmaillot
Copy link
Collaborator

Hello @miguelisidoro,

Thanks for asking. Regarding the customization into Month Picker, for now this is not provided by the control. But, as it relies on the Fluent UI Calendar & DatePicker, we could think of an enhancement idea.

For now, you can select date without time, by adding the prop dateConvention={DateConvention.Date} in the DateTimePicker.

Does this answers to your questions?

@miguelisidoro
Copy link
Author

Hi @michaelmaillot ,

Thanks for the reply.
Yes, it does. Regarding, the enhancement to add month picker selection to the component, when do you think it will be available?

I am about to start a new project using SPFx and this is a requirement.

Thanks

@michaelmaillot
Copy link
Collaborator

Well, as this is an open source project, every contributor is working on it on its spare time so we currently don't have an ETA for this enhancement.

In the meantime, to fullfill your requirement you can have a look at Fluent UI Calendar which includes an example of month picker.

Hope that it helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants