Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit46e650f

Browse files
committed
Minor tweaks
1 parent122fb7b commit46e650f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

‎reference/forms/types/date.rst‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,14 @@ field as **three different choice fields**::
6262
'widget' => 'choice',
6363
]);
6464

65-
If your underlying date is *not* a ``DateTime`` object (e.g. it's a unix timestamp),
66-
configure the `input`_ option.
67-
68-
When working with a ``DateTimeImmutable`` object, add this as an ``input`` option::
65+
If your underlying date is *not* a ``DateTime`` object (e.g. it's a unix
66+
timestamp or a ``DateTimeImmutable`` object), configure the `input`_ option::
6967

7068
$builder->add('publishedAt', DateType::class, [
7169
'widget' => 'choice',
7270
'input' => 'datetime_immutable'
7371
]);
7472

75-
7673
Rendering a single HTML5 Textbox
7774
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7875

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp