i working on a registration form in django
I taking input from date field from front end is "12/15/2016"
but i want to save it like 12 dec 2016
in my django database.
I am using this calender
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
<script>
$(document).ready(function() {
$("#datepicker").datepicker();
});
</script>
my model.py
for date is
posting_date = models.DateField(blank=True)
Views.py
post_date = str(request.POST['date'])
date = post_date.split('/')
formatted_date= date[1]+"-"+date[0]+"-"+date[2]
I want to save Dec instead of 12 for month