# function of date\_input in streamlit

**URL:** <https://discuss.streamlit.io/t/function-of-date-input-in-streamlit/40794>\
**Category:** Using Streamlit\
**Created:** [April 5, 2023, 10:53am UTC](https://discuss.streamlit.io/t/function-of-date-input-in-streamlit/40794 "2023-04-05T10:53:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lee-edgar](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/lee-edgar/32/25000_2.png) [@lee-edgar](https://discuss.streamlit.io/u/lee-edgar)\
**Post date:** [April 5, 2023, 10:53am UTC](https://discuss.streamlit.io/t/function-of-date-input-in-streamlit/40794/1 "2023-04-05T10:53:52Z")

</div>

currently using streamlit

You have created a date\_input for the start date and a date\_input for the end date. You are applying filtering functionality to your project based on the range of time series data based on the start and end dates.

When you click on the date\_input, something like a calendar appears, which I will call a calendar. For example, there is diving training from November 19th to November 27th and submarine training from November 1st to November 15th. I want to display a red star shape on the dates with submarine training and a blue star shape on the dates with diving training in the calendar.

Thank you for reading my long post asking for help.

---

<div class="post-metadata">

**Author:** ![Shawn\_Pereira](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/shawn_pereira/32/44502_2.png) [@Shawn\_Pereira](https://discuss.streamlit.io/u/Shawn_Pereira)\
**Post date:** [April 6, 2023, 3:44am UTC](https://discuss.streamlit.io/t/function-of-date-input-in-streamlit/40794/2 "2023-04-06T03:44:12Z")

</div>

Hi @lee-edgar, that functionality is not inbuilt within streamlit yet. The other way you could do it is to actually create a “calendar” (as you call it) onscreen and display any colour stars / emojis as required…

Cheers

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/streamlit/original/3X/c/f/cf4c2ee0d938358f82448c5fe4b9c3c91d7ce19c.svg) [@system](https://discuss.streamlit.io/u/system)\
**Post date:** [April 5, 2024, 3:45am UTC](https://discuss.streamlit.io/t/function-of-date-input-in-streamlit/40794/3 "2024-04-05T03:45:00Z")

</div>

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
