BC dates in Streamlit

In my dataframe, I have dates for BC and AC. In st.date_input, how can I define max_value and min value? Can anyone help me?

As an example,
my start date is January 1, 2600 BC
my finish date is December 31, 2024

st.date_input(“Date”,
min_value=datetime.date(year=???, month=1, day=1),
max_value=datetime.date(year=2024, month=12, day=31))

I do not think that’s possible with st.date_input because it expects a datetime.date object to set the limits, and the smallest year value allowed in a datetime.date is 1.

Then i should change my input way. Thank you

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