Updated to make it work with the bootstrap-datepicker