diff --git a/src/dateparser/dateparser.js b/src/dateparser/dateparser.js index eb323623b6..47bba23cb8 100644 --- a/src/dateparser/dateparser.js +++ b/src/dateparser/dateparser.js @@ -125,7 +125,7 @@ angular.module('ui.bootstrap.dateparser', []) if ( results && results.length ) { var fields, dt; - if (baseDate) { + if (angular.isDate(baseDate) && !isNaN(baseDate)) { fields = { year: baseDate.getFullYear(), month: baseDate.getMonth(),