code: function (dt, format) {
              return dateFormat(isInstanceOf(dt, SQL.TimeStamp) ? dt.date : dt, format || this.timeStampFormat);
          }
docs: Converts a {@link patio.sql.TimeStamp} to a string.
  The format used is {@link patio.Time#timeStampFormat},
  which defaults to {@link patio.Time#DEFAULT_TIMESTAMP_FORMAT}
  
  @example
  
  var date = new Date(2004, 1, 1, 12, 12, 12),
  dateTime = new sql.TimeStamp(2004, 1, 1, 12, 12, 12),
  offset = "-0600";
  patio.timeStampToString(date); //=> '2004-02-01 12:12:12'
  patio.timeStampToString(dateTime); //=> '2004-02-01 12:12:12'
  
  patio.timeStampFormat = patio.TIMESTAMP_TWO_YEAR_FORMAT;
  patio.timeStampToString(date); //=> '04-02-01 12:12:12'
  patio.timeStampToString(dateTime); //=> '04-02-01 12:12:12'
  
  patio.timeStampFormat = patio.TIMESTAMP_FORMAT_TZ;
  patio.timeStampToString(date); //=> '2004-02-01 12:12:12-0600'
  patio.timeStampToString(dateTime); //=> '2004-02-01 12:12:12-0600'
  
  patio.timeStamp = patio.ISO_8601;
  patio.timeStampToString(date); //=> '2004-02-01T12:12:12-0600'
  patio.timeStampToString(dateTime); //=> '2004-02-01T12:12:12-0600'
  
  patio.timeStamp = patio.ISO_8601_TWO_YEAR;
  patio.timeStampToString(date); //=> '04-02-01T12:12:12-0600'
  patio.timeStampToString(dateTime); //=> '04-02-01T12:12:12-0600'
  
  
  @param {Date\patio.sql.TimeStamp} dt the timestamp to convert to to a string.
  
  @returns {String} the date string.