public/javascripts/inputex/build/inputex.js
function(val, sendUpdatedEvt) {
	
	   // Don't try to parse a date if there is no date
	   if( val === '' ) {
	      inputEx.DateField.superclass.setValue.call(this, '', sendUpdatedEvt);
	      return;
	   }
	   var str = "";
	   if (val instanceof Date) {
			str = inputEx.DateField.formatDate(val, this.options.dateFormat);
	   } 
		else if(this.options.valueFormat){
			var dateVal = inputEx.DateField.parseWithFormat(val, this.options.valueFormat);
			str = inputEx.DateField.formatDate(dateVal, this.options.dateFormat);
		}
	   // else date must match this.options.dateFormat
	   else {
	     str = val;
	   }
	
	   inputEx.DateField.superclass.setValue.call(this, str, sendUpdatedEvt);
	}
function(val, sendUpdatedEvt) {
	
	   // Don't try to parse a date if there is no date
	   if( val === '' ) {
	      inputEx.DateField.superclass.setValue.call(this, '', sendUpdatedEvt);
	      return;
	   }
	   var str = "";
	   if (val instanceof Date) {
			str = inputEx.DateField.formatDate(val, this.options.dateFormat);
	   } 
		else if(this.options.valueFormat){
			var dateVal = inputEx.DateField.parseWithFormat(val, this.options.valueFormat);
			str = inputEx.DateField.formatDate(dateVal, this.options.dateFormat);
		}
	   // else date must match this.options.dateFormat
	   else {
	     str = val;
	   }
	
	   inputEx.DateField.superclass.setValue.call(this, str, sendUpdatedEvt);
	}
function ( val , sendUpdatedEvt ) { // Don't try to parse a date if there is no date if ( val === '' ) { inputEx . DateField . superclass . setValue . call ( this , '' , sendUpdatedEvt ) ; return ; } var str = "" ; if ( val instanceof Date ) { str = inputEx . DateField . formatDate ( val , this . options . dateFormat ) ; } else if ( this . options . valueFormat ) { var dateVal = inputEx . DateField . parseWithFormat ( val , this . options . valueFormat ) ; str = inputEx . DateField . formatDate ( dateVal , this . options . dateFormat ) ; } // else date must match this.options.dateFormat else { str = val ; } inputEx . DateField . superclass . setValue . call ( this , str , sendUpdatedEvt ) ; }
Format the date according to options.dateFormat
@param {Date} val Date to set
@param {boolean} [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)
Format the date according to options . dateFormat