code: function validDate( value, name ) {
  	var type;
  
  	type = typeof value;
  	if ( type === 'string' ) {
  		value = Date.parse( value );
  		if ( value !== value ) {
  			throw new Error( 'incrdatespace()::invalid input argument. Unable to parse ' +  name.toLowerCase() + ' date.' );
  		}
  		value = new Date( value );
  	}
  	if ( type === 'number' ) {
  		if ( !timestamp.test( value ) ) {
  			throw new Error( 'incrdatespace()::invalid input argument. Numeric ' + name.toLowerCase() + ' date must be either a Unix or Javascript timestamp.' );
  		}
  		if ( value.toString().length === 10 ) {
  			value = value * 1000; // sec to ms
  		}
  		value = new Date( value );
  	}
  	if ( !(value instanceof Date) ) {
  		throw new TypeError( 'incrdatespace()::invalid input argument. ' + name + ' date must either be a date string, Date object, Unix timestamp, or JavaScript timestamp.' );
  	}
  	return value;
  }
docs: FUNCTIONS // 
  FUNCTION: validDate( value, name )
  Validates a date parameter.
  
  @private
  @param {*} value - value to be validated
  @param {String} name - name to be used in error messages
  @returns {Date} validated date