I have a DateTimePicker Bootstrap that has a fixed format.
$('.datetimepicker1').datetimepicker({
format: 'ddd, DD MMM YYYY'
});
Everything works fine but when I try to paste a date on it with a different format, it converts it to a wrong date.
The date I pasted is 01/02/2016
and the result I get from the datetimepicker is Tue, 01 Jan 0002
when I hit tab.
It converts it to the date format I set but the date is wrong. I tried converting it onchange but I know there should be a cleaner and better way to handle this.
Any ideas? Thanks!