public/javascripts/inputex/build/inputex.js
function(forceDate) {
	   // let parent class function check if typeInvite, etc...
	   var value = inputEx.DateField.superclass.getValue.call(this);

	   // Hack to validate if field not required and empty
	   if (value === '') { return '';}
	
		var finalDate = inputEx.DateField.parseWithFormat(value,this.options.dateFormat);
	
		// if valueFormat is specified, we format the string
		if(!forceDate && this.options.valueFormat){	
			return inputEx.DateField.formatDate(finalDate, this.options.valueFormat);
		} 
		
		return finalDate;
	}
function(forceDate) {
	   // let parent class function check if typeInvite, etc...
	   var value = inputEx.DateField.superclass.getValue.call(this);

	   // Hack to validate if field not required and empty
	   if (value === '') { return '';}
	
		var finalDate = inputEx.DateField.parseWithFormat(value,this.options.dateFormat);
	
		// if valueFormat is specified, we format the string
		if(!forceDate && this.options.valueFormat){	
			return inputEx.DateField.formatDate(finalDate, this.options.valueFormat);
		} 
		
		return finalDate;
	}
function ( forceDate ) { // let parent class function check if typeInvite, etc... var value = inputEx . DateField . superclass . getValue . call ( this ) ; // Hack to validate if field not required and empty if ( value === '' ) { return '' ; } var finalDate = inputEx . DateField . parseWithFormat ( value , this . options . dateFormat ) ; // if valueFormat is specified, we format the string if ( ! forceDate && this . options . valueFormat ) { return inputEx . DateField . formatDate ( finalDate , this . options . valueFormat ) ; } return finalDate ; }
Return the date
@param {Boolean} forceDate Skip the valueFormat option if set to truthy
@return {String || Date} Formatted date using the valueFormat or a javascript Date instance
Return the date