*/
setValue : function(value){
var old = this.value;
- if (typeof(value) == 'undefined') {
- value = new Date();
- }
if (typeof(value) == 'string') {
value = Date.parseDate(value, this.format);
}
+ if (!value) {
+ value = new Date();
+ }
this.value = value.clearTime(true);
if(this.el){