public static String formatDate(Date date) {
    return LOCAL_FORMAT.get().format(date);
  }
Formats a date to a string.
@param date The date.
@return The string format of the date, it's yyyymmdd.
hbase-server/src/main/java/org/apache/hadoop/hbase/mob/MobUtils.java