code: function(inst) {
  		if (this._get(inst, 'autoSize') && !inst.inline) {
  			var date = new Date(2009, 12 - 1, 20); // Ensure double digits
  			var dateFormat = this._get(inst, 'dateFormat');
  			if (dateFormat.match(/[DM]/)) {
  				var findMax = function(names) {
  					var max = 0;
  					var maxI = 0;
  					for (var i = 0; i < names.length; i++) {
  						if (names[i].length > max) {
  							max = names[i].length;
  							maxI = i;
  						}
  					}
  					return maxI;
  				};
  				date.setMonth(findMax(this._get(inst, (dateFormat.match(/MM/) ?
  					'monthNames' : 'monthNamesShort'))));
  				date.setDate(findMax(this._get(inst, (dateFormat.match(/DD/) ?
  					'dayNames' : 'dayNamesShort'))) + 20 - date.getDay());
  			}
  			inst.input.attr('size', this._formatDate(inst, date).length);
  		}
  	}
docs: /* Apply the maximum length for the date format.