How to set date_input as null or empty when apps initialized

I want to set st.date_input to empty when app initialized, but find default set single date, I don’t know how to solution this problem?

Hi @Fanstyone,

Please share the code you’ve written so far to try to implement this so we can point you in the right direction. Can you also clarify what you mean by “find default set single state”? Are you looking for the value parameter for st.date_input?

Hi Caroline, this is code with st.date_input →
pay_time = st.date_input(
‘payTime:’,
[datetime.date(2022, 9, 1), datetime.date(2022, 9, 2)]),

I just want to set default value as null or empty, but I saw the source code that it like this pic
streamlit_date_problem

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