code: function (dt, format) {
              var ret = date.parse(dt, format || this.yearFormat);
              if (!ret) {
                  throw new PatioError("Unable to convert year: " + dt);
              }
              return new SQL.Year(ret);
          }
docs: Converts a year date string to a {@link patio.sql.Year}
  
  @example
  
  var year = new sql.Year(2004);
  patio.stringToYear("2004"); //=> year
  patio.yearFormat = "yy";
  patio.stringToYear("04"); //=> year
  
  @param {String} dt the string to covert to a {@link patio.sql.Year}
  @param {String} [format=patio.Time#yearFormat] the format to use when converting the date.
  
  @throws {PatioError} thrown if the conversion fails.
  @return {patio.sql.Year} the {@link patio.sql.Year}