Show dd/mm/yy in input type date field

I have a input type Date field using below code.

# forms.py
widgets = {
            'date_of_birth': forms.DateInput(attrs={'type': 'date'})
        }   

I am using below code in HTML Template.

<label class="form-label">Date of Birth</label>
{{ form.date_of_birth }}  

I am getting mm/dd/yy format but I would like to get dd/mm/yy format.

I am getting this output.

123456

See the thread and reply at Change form date input format - #4 by KenWhitesell

1 Like

Thanks @KenWhitesell . I am still getting mm/dd/yyyy. How can I show dd/mm/yyyy ?

123456789

Please post the changes you’ve made.

1 Like

Thanks @KenWhitesell . I used below code.

widgets = {
      'date_of_birth': forms.DateInput(attrs={'type': 'text'})
}   

I am getting output like below.

123456