Date format in Bootstrap datetimepicker
Please use data-date-format="DD-MM-YYYY HH:mm:ss"
inside the input tag.
<input data-date-format="DD-MM-YYYY HH:mm:ss" type="text" />
See this. https://jsfiddle.net/h0jk6oq4/
check this jsfiddle
http://jsfiddle.net/8tsCt/4/ --not working due to reference link broken
latest version as per 2017
http://jsfiddle.net/8tsCt/166/
format must be
$('.datepicker').datetimepicker({
format: 'DD-MM-YYYY HH:mm:ss'
});