Skip to content

Commit 106233d

Browse files
committed
update Date doc
1 parent 72bb1ea commit 106233d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/api/index.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -510,11 +510,13 @@
510510
Form::Url("Url", "url");
511511
?>
512512
<h2>Date Elements</h2>
513-
<p></p>
513+
<p>Please note, that usage of date element can lead to a different behavoir in different browsers. </p>
514514
<div class="highlight">
515515
<pre><code class="language-php">
516516
<?php echo htmlspecialchars ('<?php
517-
Form::Date("Date", "date", $attributes = null);
517+
Form::Date("US Date", "date", $attributes = null);
518+
Form::Date("EU Date", "date", array ("pattern" => "\d{2}.\d{2}.\d{4}",
519+
"placeholder" => "DD.MM.YYYY"));
518520
Form::DateTime("DateTime", "datetime", $attributes = null);
519521
Form::DateTimeLocal("DateTime Local", "DateTimeLocal", $attributes = null);
520522
Form::Month("Month", "month", $attributes = null);
@@ -524,7 +526,8 @@
524526
</code></pre>
525527
</div>
526528
<?php
527-
Form::Date("Date", "date");
529+
Form::Date("US Date", "date");
530+
Form::Date("EU Date", "date", array ("pattern" => "\d{2}.\d{2}.\d{4}", "placeholder" => "DD.MM.YYYY"));
528531
Form::DateTime("DateTime", "datetime");
529532
Form::DateTimeLocal("DateTime Local", "DateTimeLocal", array ('placeholder' => 'DateTime-Local'));
530533
Form::Month("Month", "month");

0 commit comments

Comments
 (0)