try {
SimpleDateFormat sdf = new SimpleDateFormat( format );
Date date = sdf.parse( value );
st = new ReceivedDateTerm( cp, date );
}
catch( ParseException pe ) {
throw( new XPathException(this, "Cannot parse date value: " + value + ", using format: " + format + ", for term with type: " + ((Element)terms).getAttribute( "type" ) ) );
}