streamlit-survey icon indicating copy to clipboard operation
streamlit-survey copied to clipboard

[BUG] date input

Open stgov opened this issue 1 year ago • 0 comments

image hi, the streamlit date_input has an arg for the date format and you can set the date to None as defualt value, could you add it please?

nacimiento = survey.dateinput(
            ':red[*]Fecha de nacimiento',
            key='nacimiento',
            value=None, # it does not work
            min_value=datetime.now() - timedelta(days=365 * 100),
            max_value=datetime.now(),
            format='DD/MM/YYYY', # it does not work
        )

stgov avatar Aug 03 '23 00:08 stgov