Thanks to visit codestin.com Credit goes to github.com
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.
1 parent b8c9068 commit 882ca41Copy full SHA for 882ca41
reference/forms/types/date.rst
@@ -92,14 +92,15 @@ make the following changes::
92
'attr' => ['class' => 'js-datepicker'],
93
));
94
95
-Assuming you're using jQuery, you can initialize the date picker via:
+Then, add the following JavaScript code in your template to initialize the date
96
+picker:
97
98
.. code-block:: html
99
100
<script>
101
$(document).ready(function() {
102
$('.js-datepicker').datepicker({
- dateFormat: 'yy-mm-dd'
103
+ format: 'yyyy-mm-dd'
104
});
105
106
</script>
0 commit comments