streamlit / streamlit

Streamlit — A faster way to build and share data apps.
https://streamlit.io
Apache License 2.0
33.25k stars 2.9k forks source link

Generic date formatting in date_input #7846

Open hansthen opened 6 months ago

hansthen commented 6 months ago

Checklist

Summary

I would like a more generic format specification for the date_input's format parameter. E.g. "MMDD" or "DD" should also be supported or formats with different separators.

Why?

Users ask for it. In one specific use case, users can select a year and/ or a month from a select box. If those are selected, the view will show all the data for the selected year and month. They can also select a specific date, in which case the year and month selectboxes should be updated to match. In the current implementation the users see the year and month twice.

How?

No response

Additional Context

No response

github-actions[bot] commented 6 months ago

To help Streamlit prioritize this feature, react with a 👍 (thumbs up emoji) to the initial post.

Your vote helps us identify which enhancements matter most to our users.

Visits