uFormat = new BooleanFormat(pattern);
uFormat.format(BooleanValue.TRUE.getObjectToFormat());
break;
case TEXT:
// Dummy format so no need to check it for problems.
uFormat = new TextFormat();
break;
case DATE:
uFormat = new SimpleDateFormat(pattern, locale);
((SimpleDateFormat) uFormat).setTimeZone(TimeZone.getTimeZone("GMT"));
uFormat.format(new DateValue(1995, 7, 3).getObjectToFormat());