Skip to content

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

@choisy-root

Description

@choisy-root

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions