I have spent sometime on researching the existing datetime directives of angularjs.
Both ngularUI and AngularStrap do not provide a datetimepicker as I needed. Of co
A possible solution to problem 1:
You will need to set the view value to the date that is in the model right from the beginning, by doing something like this:
if (ngModel.$viewValue) {
picker.data("DateTimePicker").setDate(new Date(ngModel.$modelValue));'
picker.on('change', function(e) {
....
});
}