# Date filter

**URL:** <https://discuss.streamlit.io/t/date-filter/30203>\
**Category:** Using Streamlit\
**Created:** [September 3, 2022, 2:47pm UTC](https://discuss.streamlit.io/t/date-filter/30203 "2022-09-03T14:47:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zainabhodroj](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/zainabhodroj/32/15472_2.png) [@zainabhodroj](https://discuss.streamlit.io/u/zainabhodroj)\
**Post date:** [September 3, 2022, 2:47pm UTC](https://discuss.streamlit.io/t/date-filter/30203/1 "2022-09-03T14:47:44Z")

</div>

Hello everyone,  
I am trying to add a datetime filter to filter my visuals in streamlit  
I did this  
start\_date = st.date\_input(‘Start’, value= pd.to\_datetime(df[“Date”].min()))  
end\_date = st.date\_input(‘End’, value= pd.to\_datetime(df[“Date”].max()))  
and I can choose a date but it doesn’t filter my visuals any help please its urgent

---

<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:** [September 3, 2023, 2:47pm UTC](https://discuss.streamlit.io/t/date-filter/30203/2 "2023-09-03T14:47:53Z")

</div>

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