# "Today" button for date input

**URL:** <https://discuss.streamlit.io/t/today-button-for-date-input/122091>\
**Category:** Using Streamlit\
**Tags:** date\_input, discussion\
**Created:** [July 31, 2026, 8:07pm UTC](https://discuss.streamlit.io/t/today-button-for-date-input/122091 "2026-07-31T20:07:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![William\_Garrard](https://avatars.discourse-cdn.com/v4/letter/w/e9c0ed/32.png) [@William\_Garrard](https://discuss.streamlit.io/u/William_Garrard)\
**Post date:** [July 31, 2026, 8:07pm UTC](https://discuss.streamlit.io/t/today-button-for-date-input/122091/1 "2026-07-31T20:07:32Z")

</div>

I often have a use case where a date input is set to some time in the past, say 1/1/2000. If I want to let the user update this to the current date, it involves selecting both the current year and month from the dropdowns within the widget manually.

It would be ideal if there was a small button right next to those dropdowns that would snap the selection to the current date and also not close the widget. This would just allow a user to get to “today” within the widget more easily, then select whatever date they want.

Does this exist? Illustration attached.

 ![Screenshot 2026-07-31 160107](https://global.discourse-cdn.com/streamlit/original/3X/3/8/3857ddd0a5e930b8d05077d798678266defaebe2.png)

Thank you

---

<div class="post-metadata">

**Author:** ![AgentStreamy](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/agentstreamy/32/75102_2.png) [@AgentStreamy](https://discuss.streamlit.io/u/AgentStreamy)\
**Post date:** [July 31, 2026, 8:07pm UTC](https://discuss.streamlit.io/t/today-button-for-date-input/122091/2 "2026-07-31T20:07:50Z")

</div>

Welcome to the Streamlit community, and thanks for your thoughtful question! 🎈 Currently, Streamlit’s built-in st.date\_input widget does not provide a “Today” button or shortcut within the calendar dropdown to quickly jump to the current date. Users must manually navigate through the year and month selectors to reach today’s date if the initial value is far in the past. This feature is not available in the official API or widget configuration options as of the latest release.

If you’d like to see this feature added, you can upvote or comment on related feature requests in the Streamlit GitHub repository. For now, you might consider adding a separate button in your app UI (outside the widget) that sets the date input’s value to today via session state, but this will close and reopen the widget, not keep it open as you described. For more details, see the [st.date\_input documentation](https://docs.streamlit.io/develop/api-reference/widgets/st.date_input#content-container) and related [feature discussions](https://github.com/streamlit/streamlit/issues/6089).

Sources:

- [st.date\_input documentation](https://docs.streamlit.io/develop/api-reference/widgets/st.date_input#content-container)
- [feature discussions](https://github.com/streamlit/streamlit/issues/6089)

---

<div class="post-metadata">

**Author:** ![lperezmo](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/lperezmo/32/50243_2.png) [@lperezmo](https://discuss.streamlit.io/u/lperezmo)\
**Post date:** [August 3, 2026, 11:26pm UTC](https://discuss.streamlit.io/t/today-button-for-date-input/122091/3 "2026-08-03T23:26:09Z")

</div>

If you’re interested, the `st-rsuite` custom component does have a today and yesterday button built-in.

You can install it with `uv add st-rsuite` or `pip install st-rsuite`

[https://rsuite.streamlit.app/](https://sample%20app)

 ![1000016927](https://global.discourse-cdn.com/streamlit/original/3X/6/6/661c7599f9ccf6c29947002a4d14df4c7c68f2ea.jpeg)

---

<div class="post-metadata">

**Author:** ![William\_Garrard](https://avatars.discourse-cdn.com/v4/letter/w/e9c0ed/32.png) [@William\_Garrard](https://discuss.streamlit.io/u/William_Garrard)\
**Post date:** [August 4, 2026, 1:31pm UTC](https://discuss.streamlit.io/t/today-button-for-date-input/122091/4 "2026-08-04T13:31:32Z")

</div>

This looks like just the ticket, but I am running Streamlit in Snowflake and it appears this package is not available to me.

---

<div class="post-metadata">

**Author:** ![arzhost](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/arzhost/32/76398_2.png) [@arzhost](https://discuss.streamlit.io/u/arzhost)\
**Post date:** [August 5, 2026, 4:07pm UTC](https://discuss.streamlit.io/t/today-button-for-date-input/122091/5 "2026-08-05T16:07:42Z")

</div>

I think a “Today” button would be a really useful addition. Having to manually navigate from an old date to the current date can be a bit tedious. A small shortcut that keeps the calendar open would make the date picker much easier to use.
