code: private String timeToStr(Timestamp pobjTS, String pstrFmt)
      {
          String strRet = null;
          SimpleDateFormat dtFmt = null;
  
          try
          {
              dtFmt = new SimpleDateFormat(pstrFmt);
              strRet = dtFmt.format(pobjTS);
          }
          catch (IllegalArgumentException  iae)
          {
              strRet = "";
          }
          catch (NullPointerException npe)
          {
              strRet = "";
          }
          finally
          {
              if (dtFmt != null) dtFmt = null;
          }
          return strRet;
      }
docs: Converts the given sql timestamp object to a string representation. The format
  to be used is to be obtained from the configuration file.
  
  @param pobjTS the sql timestamp object to be converted.
  @param pblnGMT If true formats the string using GMT  timezone
  otherwise using local timezone.
  @return the formatted string representation of the timestamp.