1👍
You can’t pass a Jquery variable directly to view.py. You can do an ajax post to the view.py if you want to pass the data in the variable. Or you can create a hidden input field and assign it’s value to be the value of the datepicker and then submit the form.
Source:stackexchange.com