Feature: #109126 - Introduce date editor for ext:form 

See forge#109126

Description 

A new web component <typo3-form--date-editor> has been introduced in the form editor backend. It replaces the plain text input in the DateRange validator minimum/maximum fields and the defaultValue field in the Date form element.

Previously editors had to manually type date values or relative expressions like -18 years into a plain text field. The new structured editor provides a user-friendly UI which has five modes:

  • No value - Clears the constraint (empty value)
  • Today - Sets the value to today
  • Absolute date - A native HTML5 date picker that produces Y-m-d values
  • Relative date - Structured input with direction (past/future), amount and unit (days, weeks, months, years), which produces expressions like -18 years or +1 month
  • Custom relative expression - Free-text input for arbitrary relative date expressions that go beyond the structured input, such as compound expressions like +1 month +3 days. The input is validated against the configured relative date pattern.

Impact 

The form editor backend now provides a structured, user-friendly editor for date constraints and default values in Date form elements. Editors no longer need to know the PHP relative date syntax - they can simply select a mode, direction, amount, and unit from dropdown fields. For advanced use cases, the custom mode allows arbitrary relative date expressions with real-time validation to be entered. Existing form definitions are not affected and continue to work without change.