Parse a date with bootstrap-datepicker
Using the DPGlobal tools included
HTML
<script src="https://raw.github.com/eternicode/bootstrap-datepicker/master/js/bootstrap-datepicker.js"></script>
JavaScript
dpg = $.fn.datepicker.DPGlobal;
date_format = 'dd/mm/yyyy';
date_str = '31/12/2013';
$('body').append($('<div />').text(dpg.parseDate(date_str, dpg.parseFormat(date_format))));