Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 882ca41

Browse files
javiereguiluzxabbuh
authored andcommitted
Fixed the issue in a different way
1 parent b8c9068 commit 882ca41

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

reference/forms/types/date.rst

Lines 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)