public static Date convertToDate(String date) throws ParseException {
    SimpleDateFormat sdf = new SimpleDateFormat(ALLOWED_DATE_FORMAT);
    return sdf.parse(date);
  }
Convert from supported format to Date
@param date
@return
@throws ParseException
ambari-server/src/main/java/org/apache/ambari/server/utils/DateUtils.java