I'm trying to get the date from a bootstrap datetimepicker but when I put a ng-model on the input field it's not working?
html
<!-- EndDate -->
<div class="form-group">
<label for="dtp_enddate">Eind datum:</label>
<div class="input-group date" id="dtp_endDate">
<input type="text" class="form-control" name="EndDate" ng-model="employeeCtrl.employee.EndDate" required="required" />
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
</div>
jquery
$(function() {
$('#dtp_endDate').datetimepicker({
useCurrent: true,
collapse: true,
format: 'YYYY-MM-D',
locale: 'nl',
allowInputToggle: true
});
});
How could I accomplish that?