public static String convertTimestampToString(Timestamp timestamp) {
    return TIMESTAMP_FORMATTER.format(timestamp.toInstant());
  }
Converts java.sql.Timestamp to string format timestamp.
@param timestamp java.sql.Timestamp object.
@return Timestamp in string format.
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/utils/MetaStoreUtils.java