g00fy-/angular-datepicker

can I set a Date to datepick?

Closed this issue · 4 comments

I didn't see it in document.

some time we need set a Date to datepick

Not This

This will change the Attr not Date

$scope.$broadcast('pickerUpdate', 'pickerToUpdate', {
    format: 'D MMM YYYY HH:mm',
    maxDate: maxSelectableDate, //A moment object, date object, or date/time string parsable by momentjs
    minView: 'hours',
    view: false //Use default
});

It default show Today

But I need set it start in some day

not user minDate and maxDate to limit it

@axetroy if you set your model with the date that you want and add the following directive:
watch-direct-changes="true"
It will work as you expect.

@eralha I would close this issue.

@brunokrebs thanks,i will try