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
When you set the properties of the $scope.datepickerObject if you put to: new Date() everything works fine, you can select all the days that are before the date and you can also select the today date.
$scope.datepickerObject = {
titleLabel: $scope.datePickerTitle,
todayLabel: $scope.todayText,
closeLabel: $scope.closeText,
setLabel: $scope.setText,
inputDate: new Date(),
mondayFirst: true,
templateType: 'popup',
showTodayButton: 'true',
to: new Date(),
callback: function (val) {
datePickerCallback(val);
}
};
But when you use thefrom: new Date() you are able to select all the upcoming dates but not the today date. What I have done to fix it is to create an object date with the yesterday's date. It would be great that the from: new Date() wuld let you select all the upcoming days including today.
When you set the properties of the $scope.datepickerObject if you put
to: new Date()
everything works fine, you can select all the days that are before the date and you can also select the today date.But when you use the
from: new Date()
you are able to select all the upcoming dates but not the today date. What I have done to fix it is to create an object date with the yesterday's date. It would be great that thefrom: new Date()
wuld let you select all the upcoming days including today.Note that for the example I'm using moment.js
The text was updated successfully, but these errors were encountered: