public static String toEscape(Date date){
  if (date == null)   return null;
  DateFormat df=null;
  try {
    df=new SimpleDateFormat(ESCAPE_DATE_PATTERN);
  }
 catch (  Throwable t) {
    return null;
  }
  df.setLenient(false);
  return df.format(date);
}

public static String toEscape ( Date date ) { if ( date == null ) return null ; DateFormat df = null ; try { df = new SimpleDateFormat ( ESCAPE_DATE_PATTERN ) ; } catch ( Throwable t ) { return null ; } df . setLenient ( false ) ; return df . format ( date ) ; }
return string value representing date . null returns null .
