private String utilDateToStr ( Date pdt , String pstrFmt ) { String strRet = null ; SimpleDateFormat dtFmt = null ; try { dtFmt = new SimpleDateFormat ( pstrFmt ) ; strRet = dtFmt . format ( pdt ) ; } catch ( Exception e ) { strRet = null ; } finally { if ( dtFmt != null ) dtFmt = null ; } return strRet ; }
Converts a java . util . date into String