In my Django application I have a DateField (format 'YYYY-MM-DD'). When I try to save the string '2011-11-01' I get no error but my fields gets the NULL value.
I tried to do that with strptime function from datetime and time libraries but with the same issue. Basically it all happens in a form
I have
if form.valid(): form.cleaned_data['date'] = year + '-' + month + '-' day form.save()