public static String convertDateToString(Date date) {
    return DATE_FORMATTER.format(date.toLocalDate());
  }
Converts java.sql.Date to String format date.
@param date - java.sql.Date object.
@return Date in string format.
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/utils/MetaStoreUtils.java