Skip to content
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

Please add ui.input_datetime for combined date and time input #1803

Open
choisy-root opened this issue Dec 19, 2024 · 1 comment
Open

Please add ui.input_datetime for combined date and time input #1803

choisy-root opened this issue Dec 19, 2024 · 1 comment

Comments

@choisy-root
Copy link

choisy-root commented Dec 19, 2024

Currently, Python Shiny does not provide a dedicated ui.input_datetime function to allow users to select both date and time in a single input field. This limitation makes it necessary to rely on custom implementations or combine existing components, which can be cumbersome and less intuitive.

I would like to have a ui.input_datetime function in Python Shiny that integrates date and time selection in a single input field. This feature could be based on the HTML5 datetime-local input type, enabling a compact and user-friendly experience.

Example usage:

ui.input_datetime("datetime", "Select Date and Time:", value="2024-01-01T12:00")

Currently, only ui.input_date is available, and there is no straightforward way to incorporate time selection into the UI. Developers are forced to rely on external libraries or manual HTML/CSS customizations.

@choisy-root choisy-root changed the title Add ui.input_datetime for combined date and time input Please add ui.input_datetime for combined date and time input Dec 19, 2024
@nsiicm0
Copy link
Contributor

nsiicm0 commented Jan 9, 2025

I am frequently facing the same issue and above that sometimes having to select "weeks" in the format "%Y-%W" (e.g. 2025-01).
So it would be probably great to be able to specify the desired format instead of having different functions.

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