Date filter

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