code: function (dt, format) {
              var ret;
              if (this.convertTwoDigitYears) {
                  ret = date.parse(dt, this.TWO_YEAR_DATE_FORMAT);
              }
              if (!ret) {
                  ret = date.parse(dt, format || this.dateFormat);
              }
              if (!ret) {
                  throw new PatioError("Unable to convert date: " + dt);
              }
              return ret;
          }
docs: Converts a date string to a Date
  
  @example
  
  var date = new Date(2004, 1,1,0,0,0);
  patio.stringToDate('2004-02-01'); //=> date
  
  patio.dateFormat = patio.TWO_YEAR_DATE_FORMAT;
  patio.stringToDate('04-02-01'); //=> date
  
  @param {String} dt the string to convert to a Date
  @param {String} [format=patio.Time#dateFormat] the format to use when converting the date.
  
  @throws {PatioError} thrown if the conversion fails.
  @return {Date} the {@link Date}