11.. index ::
22 single: Forms; Fields; birthday
33
4- `` birthday `` Field Type
5- =======================
4+ birthday Field Type
5+ ===================
66
77A special :doc: `date</reference/forms/types/date> ` field that specializes
88in handling birthdate data.
@@ -13,25 +13,25 @@ This type is essentially the same as the ``date`` type, but with a more appropri
1313default for the ``years `` option. The ``years `` option defaults to 120
1414years ago to the current year.
1515
16- +----------------------+-----------------------------------------------------------------------------------------------------+
17- | Underlying Data Type | can be ``DateTime ``, ``string ``, ``timestamp ``, or ``array `` (see :ref: `form-reference-date-input `) |
18- +----------------------+-----------------------------------------------------------------------------------------------------+
19- | Rendered as | can be three select boxes or a text box, based on the ``widget `` option |
20- +----------------------+-----------------------------------------------------------------------------------------------------+
21- | Options | - ``widget `` |
22- | | - ``input `` |
23- | | - ``years `` |
24- | | - ``months `` |
25- | | - ``days `` |
26- | | - ``format `` |
27- | | - ``pattern `` |
28- | | - ``data_timezone `` |
29- | | - ``user_timezone `` |
30- +----------------------+-----------------------------------------------------------------------------------------------------+
31- | Parent type | :doc: `date</reference/forms/types/date> ` |
32- +----------------------+-----------------------------------------------------------------------------------------------------+
33- | Class | :class: `Symfony\\ Component\\ Form\\ Extension\\ Core\\ Type\\ BirthdayType ` |
34- +----------------------+-----------------------------------------------------------------------------------------------------+
16+ +----------------------+------------------------------------------------------------------------------------------------------------------------ +
17+ | Underlying Data Type | can be ``DateTime ``, ``string ``, ``timestamp ``, or ``array `` (see the :ref: `input option < form-reference-date-input > `) |
18+ +----------------------+------------------------------------------------------------------------------------------------------------------------ +
19+ | Rendered as | can be three select boxes or a text box, based on the ``widget `` option |
20+ +----------------------+------------------------------------------------------------------------------------------------------------------------ +
21+ | Options | - ``widget `` |
22+ | | - ``input `` |
23+ | | - ``years `` |
24+ | | - ``months `` |
25+ | | - ``days `` |
26+ | | - ``format `` |
27+ | | - ``pattern `` |
28+ | | - ``data_timezone `` |
29+ | | - ``user_timezone `` |
30+ +----------------------+------------------------------------------------------------------------------------------------------------------------ +
31+ | Parent type | :doc: `date</reference/forms/types/date> ` |
32+ +----------------------+------------------------------------------------------------------------------------------------------------------------ +
33+ | Class | :class: `Symfony\\ Component\\ Form\\ Extension\\ Core\\ Type\\ BirthdayType ` |
34+ +----------------------+------------------------------------------------------------------------------------------------------------------------ +
3535
3636Options
3737-------
0 commit comments