public static String getDateFromName(final String fileName) {
    return fileName.substring(STARTKEY_END_INDEX, DATE_END_INDEX);
  }
get date from MobFileName.
@param fileName file name.
hbase-server/src/main/java/org/apache/hadoop/hbase/mob/MobFileName.java