在输入日期[重复]显示时,将日期格式从MM / DD / YYYY更改为DD / MM / YYYY

This question already has an answer here:

I am trying to change the format of date value

Currently the date format is stored as 1996-10-16

When i display it in the page it appears as 10-16-1996

I want to display it as 16-10-1996, can anyone help me come up with a solution?

<input type="date" value="1996-10-16" name="inputdob" class="form-control" id="exampleInputEmail1" />

</div>