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 4d66b50 commit 97f3f84Copy full SHA for 97f3f84
reference/forms/types/date.rst
@@ -101,14 +101,16 @@ make the following changes::
101
'attr' => ['class' => 'js-datepicker'],
102
));
103
104
-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
105
+picker:
106
107
.. code-block:: html
108
109
<script>
110
$(document).ready(function() {
111
+ // you may need to change this code if you are not using Bootstrap Datepicker
112
$('.js-datepicker').datepicker({
- dateFormat: 'yy-mm-dd'
113
+ format: 'yyyy-mm-dd'
114
});
115
116
</script>
0 commit comments