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

Appearance settings

Commit 882ca41

Browse filesBrowse files
javiereguiluzxabbuh
authored andcommitted
Fixed the issue in a different way
1 parent b8c9068 commit 882ca41
Copy full SHA for 882ca41

File tree

Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed

‎reference/forms/types/date.rst

Copy file name to clipboardExpand all lines: reference/forms/types/date.rst
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,15 @@ make the following changes::
9292
'attr' => ['class' => 'js-datepicker'],
9393
));
9494

95-
Assuming you're using jQuery, you can initialize the date picker via:
95+
Then, add the following JavaScript code in your template to initialize the date
96+
picker:
9697

9798
.. code-block:: html
9899

99100
<script>
100101
$(document).ready(function() {
101102
$('.js-datepicker').datepicker({
102-
dateFormat: 'yy-mm-dd'
103+
format: 'yyyy-mm-dd'
103104
});
104105
});
105106
</script>

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.