def METHOD_NAME(component: DateComponent | DatetimeComponent, data: DataMapping) -> None:
    for key in ("minDate", "maxDate"):
        config = cast(
            DateConstraintConfiguration,
            glom(component, f"openForms.{key}", default=None),
        )
        if config is None:
            continue
        if (mode := config.get("mode")) in [None, ""]:
            continue
        # formio has set the datePicker.{key} value
        if mode == "fixedValue":
            continue
        config = normalize_config(component, config)
        value = calculate_delta(component, config, data)
        if value and isinstance(value, datetime):
            value = value.isoformat()
        assign(component, f"datePicker.{key}", value, missing=dict)