-
Notifications
You must be signed in to change notification settings - Fork 418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to add minDate #314
Comments
|
I also need help with this |
You'll have to post the html tag and relevant excerpts from your controller in order to see what is going on. |
Just do something like this: $scope.dates = {
minDate: this.moment().add(31, 'minutes'),
maxDate: this.moment().add(1, 'month'),
}; input.form-input(type='text', name='scheduled_at', ng-model='item.scheduled_at', date-time, min-date='dates.minDate', max-date='dates.maxDate', validation='required') |
Thank you
…On Tue, Dec 27, 2016 at 10:45 PM, Bruno Wego ***@***.***> wrote:
Just do something like this:
$scope.dates = {
minDate: this.moment().add(31, 'minutes'),
maxDate: this.moment().add(1, 'month'),
};
input.form-input(type='text', name='scheduled_at', ng-model='item.scheduled_at', date-time, min-date='dates.minDate', max-date='dates.maxDate', validation='required')
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://github.com/g00fy-/angular-datepicker/issues/314#issuecomment-269354544>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AXTKzXNpYFiLpMgaoziIp_9IE2Jj8iPxks5rMUeUgaJpZM4LHxIS>
.
--
Regards,
Kumar Sabyasachi Padhi
( FullStack Developer)
|
Use moment(). This is must. |
I am trying to ad min date(using new Date()) to my calendar, but its not reflecting. My html tag is
.
in JS file i have initialized minDate = new Date() and startDate = new Date(). The start date is shown in the input tag but minDate is not working. Am i missing something?
I have included angular-datepicker/dist/index.js and angular-datepicker/dist/index.css.
The text was updated successfully, but these errors were encountered: