.. _agemax: ====== AgeMax ====== Checks if a given date is less or equal the specified number of years. .. code-block:: typoscript Example Code: validators { DefaultValidator { model = DefaultValidator config { fields { birthdate.errorChecks { ageMax { model = AgeMax ageMax = 14 } } } } } } **Properties** .. list-table:: :align: left :width: 100% :widths: 20 80 :header-rows: 0 :stub-columns: 0 * - **ageMax** - Sets the max years to check a field date value for. * - - * - *Mandatory* - False * - *Data Type* - Integer * - *Default* - 0 * - *Note* - Date field format must be YYYY-MM-DD e.g 2000-07-19. .. toctree:: :maxdepth: 2 :hidden: