code: static public String getFormattedDate(long dt)
      {
          String ret = "";
          SimpleDateFormat df = null;
  
          try
          {
              if(dt > 0)
              {
                  df = formatPool.getFormat(DATE_FORMAT);
                  df.setTimeZone(DateUtilities.getCurrentTimeZone());
                  ret = df.format(new Date(dt));
              }
          }
          catch(Exception e)
          {
          }
  
          if(df != null)
              formatPool.release(df);
  
          return ret;
      }
docs: Returns the given date parsed using "dd-MM-yyyy".
  @param dt The date to be parsed
  @return The given date parsed using "dd-MM-yyyy"