code: public static Date fromString(String source, String format) {
          try {
              ObjectPool<DateFormat> pool = cachedDateFormat.get(format);
              try {
                  DateFormat df = pool.borrowObject();
                  try {
                      return df.parse(source);
                  } finally {
                      pool.returnObject(df);
                  }
              } catch (Exception e) {
                  throw e instanceof RuntimeException ? (RuntimeException) e
                          : new RuntimeException(e);
              }
          } catch (ExecutionException e) {
              throw new RuntimeException(e);
          }
      }
docs: Parse a string to {@link Date}, based on the specified {@code format}.
  
  @param source
  @param format
  @return