protected Date compute(String dateString,String patternString,String localeString){
  if (dateString == null || patternString == null || localeString == null) {
    return null;
  }
  Locale locale=new Locale(localeString);
  SimpleDateFormat simpleDateFormatter=null;
  Date parsedDate=null;
  try {
    simpleDateFormatter=new SimpleDateFormat(patternString,locale);
    parsedDate=simpleDateFormatter.parse(dateString);
  }
 catch (  IllegalArgumentException e) {
    throw new FunctionInputException("invalid_argument.custom_format",getFunctionName());
  }
catch (  java.text.ParseException e) {
    throw new FunctionInputException("invalid_argument.date",getFunctionName());
  }
  Calendar cal=Calendar.getInstance(locale);
  cal.setTime(parsedDate);
  return cal.getTime();
}

protected Date compute ( String dateString , String patternString , String localeString ) { if ( dateString == null || patternString == null || localeString == null ) { return null ; } Locale locale = new Locale ( localeString ) ; SimpleDateFormat simpleDateFormatter = null ; Date parsedDate = null ; try { simpleDateFormatter = new SimpleDateFormat ( patternString , locale ) ; parsedDate = simpleDateFormatter . parse ( dateString ) ; } catch ( IllegalArgumentException e ) { throw new FunctionInputException ( "invalid_argument.custom_format" , getFunctionName ( ) ) ; } catch ( java . text . ParseException e ) { throw new FunctionInputException ( "invalid_argument.date" , getFunctionName ( ) ) ; } Calendar cal = Calendar . getInstance ( locale ) ; cal . setTime ( parsedDate ) ; return cal . getTime ( ) ; }
computes the result for three string input values .
