We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
calendar
DateType
1 parent 03601f7 commit 9c72d03Copy full SHA for 9c72d03
reference/forms/types/date.rst
@@ -155,6 +155,19 @@ values for the year, month and day fields::
155
156
.. include:: /reference/forms/types/options/view_timezone.rst.inc
157
158
+``calendar``
159
+~~~~~~~~~~~~
160
+
161
+**type**: ``\IntlCalendar`` **default**: ``null``
162
163
+The calendar to use for formatting and parsing the date. The value should be
164
+an instance of the :phpclass:`IntlCalendar` to use. By default, the Gregorian
165
+calendar with the application default locale calendar is used.
166
167
+.. versionadded:: 7.2
168
169
+ The ``calendar`` option was introduced in Symfony 7.2.
170
171
.. include:: /reference/forms/types/options/date_widget.rst.inc
172
173
.. include:: /reference/forms/types/options/years.rst.inc
0 commit comments