title: django forms DateField
body: <p>I have a field in my my form named birthdate like:</p>
  
  <pre><code>class Personal_info_updateForm(forms.Form):
     birthdate = forms.DateField(widget=SelectDateWidget(years=[y for y in range(1930,2050)]))
     ..
     ..
  </code></pre>
  
  <p>views.py</p>
  
  <pre><code>def personal_info(request):
      mc = MenuCategories()      
      listCategories = mc.getCategories()
      oe = OEConnector()
      if request.method == 'POST':
          f1 = Personal_info_updateForm(request.POST)
          print request.POST
          if f1.is_valid():
              first_name = f1.cleaned_data['first_name']
              last_name = f1.cleaned_data['last_name']
              c=[last_name,first_name]
              name = " ".join(c)
              print name
              birthdate = f1.cleaned_data['birthdate']
              birthdate_year,birthdate_month,birthdate_day=['','','']
  
              birthdate = [birthdate_year,birthdate_month,birthdate_day]
              c=" ".join(birthdate)
              print birthdate
              title = f1.cleaned_data['title']
              print title
              email = f1.cleaned_data['email']
              mobile = f1.cleaned_data['mobile']
              phone = f1.cleaned_data['phone']
              result = update_details(name,first_name,last_name,birthdate,email,mobile,phone)
              print result
              return HttpResponse('/Info?info="Congratulations, you have successfully updated the information with aLOTof"')
  </code></pre>
  
  <p>a1.html I am calling the whole form like </p>
  
  <pre><code>&lt;form action="" method="POST"&gt;
      &lt;table style="color:black;text-align:left; margin-left: 20px;"&gt;
          {{ form.as_table }}
      &lt;/table&gt;
      &lt;input type="submit" value="UPDATE"&gt;
  &lt;/form&gt; 
  </code></pre>
  
  <p>I want that to store the value of my birthdate in Postgresql. But its not working so I have studied that I need to convert it into DateTime Field because date field object is completely different.. Please tell me how do I convert so that I can get rid of this problem. I am taking it as a string..</p>
  
  <p>Thanks in advance</p>