I'm need your helps. I used jquery to create datetime picker, and them work fine, but one problem : When i set value to datetimepicker they set time load the page, when i'm try refresh the value of variable the jquery was crashed. Help please :
There is my code (failed) :
<script type="text/javascript">
var aaa = '{{ now_date|date:'Y-m-d H:i' }}'
$('#datetimepicker').datetimepicker()
.datetimepicker({value:aaa,step:10});
</script>
P.S. : '{{ now_date|date:'Y-m-d H:i' }}' this is django now time