protected String compute(Date dateDate,String patternString,String localeString){
  if (dateDate == null || patternString == null || localeString == null) {
    return null;
  }
  Locale locale=new Locale(localeString);
  SimpleDateFormat simpleDateFormatter;
  try {
    simpleDateFormatter=new SimpleDateFormat(patternString,locale);
  }
 catch (  IllegalArgumentException e) {
    throw new FunctionInputException("invalid_argument.custom_format",getFunctionName());
  }
  String result=simpleDateFormatter.format(dateDate);
  return result;
}

protected String compute ( Date dateDate , String patternString , String localeString ) { if ( dateDate == null || patternString == null || localeString == null ) { return null ; } Locale locale = new Locale ( localeString ) ; SimpleDateFormat simpleDateFormatter ; try { simpleDateFormatter = new SimpleDateFormat ( patternString , locale ) ; } catch ( IllegalArgumentException e ) { throw new FunctionInputException ( "invalid_argument.custom_format" , getFunctionName ( ) ) ; } String result = simpleDateFormatter . format ( dateDate ) ; return result ; }
computes the result for one date and two string input values .
