code: private long parseDateTime(String str, String format)
      {
          return FormatUtilities.getDateTime(str, format, false, true);
      }
docs: Parses the given date string in the given format to a milliseconds vale.
  @param str The formatted date to be parsed
  @param format The format to use when parsing the date
  @return The date in milliseconds