code: function( dateString, format ) {
  
  			this.setFormat(format);
  			this.clearDate();
  			var parts = [];
  
  			// discover timezone separtor for auto profile // default is ':'
  			if(dateString.indexOf('-') === -1) {
  				this.autoProfile.tsep = '';
  			}
  
  			// YYYY-DDD
  			parts = dateString.match( /(\d\d\d\d)-(\d\d\d)/ );
  			if(parts) {
  				if(parts[1]) {
  					this.dY = parts[1];
  				}
  				if(parts[2]) {
  					this.dDDD = parts[2];
  				}
  			}
  
  			if(this.dDDD === -1) {
  				// YYYY-MM-DD ie 2008-05-01 and YYYYMMDD ie 20080501
  				parts = dateString.match( /(\d\d\d\d)?-?(\d\d)?-?(\d\d)?/ );
  				if(parts[1]) {
  					this.dY = parts[1];
  				}
  				if(parts[2]) {
  					this.dM = parts[2];
  				}
  				if(parts[3]) {
  					this.dD = parts[3];
  				}
  			}
  			return this.toString(this.format);
  		}
docs: parses text to find just the date element of an ISO date/time string i.e. 2008-05-01
  
  @param  {String} dateString
  @param  {String} format
  @return {String}