Insert different formated date in django

I have a Date input field in my form like below.

<label class="form-label">Date of Birth</label>
{{ form.date_of_birth }}  
{% if form.date_of_birth.errors %}
   <div class="alert alert-danger">{{ form.date_of_birth.errors }}</div>
{% endif %}

I am trying to insert date 08/06/2024. I am getting error Enter a valid date.. I am using below code in

date_of_birth = forms.DateField(

I am using below code in


This works for me based upon what you’re showing here. We may need to see the complete view, form, and template to be able to provide assistance.