Django - rendering date field in template
<p>I am working on a form which is used to stores student data. when I tried to render the form it produces an text input instead of data.</p>

<p>How do i render date input using django</p>

<p>forms.py</p>

<pre><code>class StudentRegister(forms.Form):

firstname = forms.CharField(max_length= 50)
lastname = forms.CharField(max_length = 50, required=False)
mail = forms.EmailField(required=False)
dob = forms.DateField()
</code></pre>

<p>html</p>

<pre><code>{{form.dob}}
{{form.dob.error}}
</code></pre>