You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Everything works fine until you assign to the input a model with a predefined date. When I load a model that already has a date in format 2016-05-20T12:40:40 the input doesn't show the date and also the first time you try to open the calendar it sends this error on the browser console.
TypeError: Object doesn't support property or method 'getFullYear'
the second time you try to open the calendar it opens with no problem, the problem I had is always loading a ng-model that already has a date.
The text was updated successfully, but these errors were encountered:
It looks like the value of your model is a string. You will need to convert it to a JavaScript Date object when your page loads. Strings do not have the getFullYear() method.
$scope.reminderForm.reminderDate = new Date($scope.reminderForm.reminderDate);
Everything works fine until you assign to the input a model with a predefined date. When I load a model that already has a date in format 2016-05-20T12:40:40 the input doesn't show the date and also the first time you try to open the calendar it sends this error on the browser console.
TypeError: Object doesn't support property or method 'getFullYear'
the second time you try to open the calendar it opens with no problem, the problem I had is always loading a ng-model that already has a date.
The text was updated successfully, but these errors were encountered: