code: public static java.util.Date parseDate(String dateString, String dateFormat) {
          java.util.Date newDate = null;
  
          try {
              newDate = new SimpleDateFormat(dateFormat, Locale.ENGLISH)
                      .parse(dateString);
          } catch (ParseException e) {
              QuickUtils.log.d("parse error", e);
          }
          return newDate;
      }
docs: Parse a data string into a real Date
  <p/>
  Note: (e.g. "yyyy-MM-dd HH:mm:ss")
  
  @param dateString date in String format
  @param dateFormat desired format (e.g. "yyyy-MM-dd HH:mm:ss")
  @return