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
I am also using DateTimePicker by Angular Directive and it is working fine here. I tried it in this way:
element.datetimepicker({
timepicker:false,
format:'Y-m-d',
formatDate:'Y-m-d',
closeOnDateSelect: true,
onChangeDateTime: function(dp, $input){
var val = $input['context']['value'];
ctrl.$setViewValue(val);
ctrl.$render();
scope.$apply();
}
// minDate:'-1970/01/02', // yesterday is minimum date
//maxDate:'+1970/01/02' // and tommorow is maximum date calendar
});