code: public static Date toDate(String pString, String pFormat) {
          // Get the format from cache, or create new and insert
          // Return new date
          return toDate(pString, new SimpleDateFormat(pFormat));
      }
docs: Converts the string to a date, using the given format.
  
  @param pString the string to convert
  @param pFormat the date format
  @return the date
  @todo cache formats?
  @see java.text.SimpleDateFormat
  @see java.text.SimpleDateFormat#SimpleDateFormat(String)