formatDate function wrapper from bootstrap-datepicker