diff options
Diffstat (limited to 'framework/Web/Javascripts/source')
-rw-r--r-- | framework/Web/Javascripts/source/prado/datepicker/datepicker.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Web/Javascripts/source/prado/datepicker/datepicker.js b/framework/Web/Javascripts/source/prado/datepicker/datepicker.js index 6dddeaad..ade26d26 100644 --- a/framework/Web/Javascripts/source/prado/datepicker/datepicker.js +++ b/framework/Web/Javascripts/source/prado/datepicker/datepicker.js @@ -473,7 +473,7 @@ Prado.WebUI.TDatePicker.prototype = date = new Date();
if(typeof(date) == "string" || typeof(date) == "number")
date = new Date(date);
- return new Date(date.getFullYear(), date.getMonth(), date.getDate(), 0,0,0);
+ return new Date(Math.min(Math.max(date.getFullYear(),this.FromYear),this.UpToYear), date.getMonth(), date.getDate(), 0,0,0);
},
setSelectedDate : function(date)
|