Correction of a bug with bootstrap-datepicker (a java date format was used instead of a custom JS date format).