diff --git a/taipy/gui/_renderers/builder.py b/taipy/gui/_renderers/builder.py index 49cd2f70df..6f2e0912c7 100644 --- a/taipy/gui/_renderers/builder.py +++ b/taipy/gui/_renderers/builder.py @@ -828,6 +828,8 @@ def set_value_and_default( if isinstance(value, (int, float)): return self.__set_react_attribute(_to_camel_case(var_name), value) if isinstance(value, (datetime, date, time)): + value = _date_to_string(value) + self.set_attribute(_to_camel_case(var_name), value) return self.set_attribute(_to_camel_case(var_name), _date_to_string(value)) else: self.set_attribute(_to_camel_case(var_name), value)