Hello!!

where i need add this code? i'm using ext-2.2!

Code:
Ext.form.DateField.prototype.menuListeners.select = function(m, d) {
	this.setValue(d);                 
	this.fireEvent('dateselect');
}
Date.prototype.clearTime = function(clone){
     if(clone){
    	return this.clone().clearTime();
    }

    if(this.getHours() == 23){
    	this.setTime(this.getTime()+(3600000));
    }else{
    	this.setHours(0);
    }
    
    this.setMinutes(0);
    this.setSeconds(0);
    this.setMilliseconds(0);
    return this;
};