code: function(date, inst) {
  			var minDate = inst.get('minDate');
  			var maxDate = inst.get('maxDate');
  			date = (minDate && date.compareTo(minDate) === -1 ? minDate.newDate() : date);
  			date = (maxDate && date.compareTo(maxDate) === +1 ? maxDate.newDate() : date);
  			return date;
  		}
docs: Restrict a date to the minimum/maximum specified.
  @memberof CalendarsPicker
  @private
  @param date {CDate} The date to check.
  @param inst {object} The current instance settings.