code: public static String getDateTerms(long date) {
  
          Calendar cal = Calendar.getInstance(OpenCms.getLocaleManager().getTimeZone());
          cal.setTimeInMillis(date);
          String day = CmsSearchIndex.DATES[cal.get(5)];
          String month = CmsSearchIndex.DATES[(cal.get(2) + 1)];
          String year = String.valueOf(cal.get(1));
  
          StringBuffer result = new StringBuffer();
          result.append(year);
          result.append(month);
          result.append(day);
          result.append(' ');
          result.append(year);
          result.append(month);
          result.append(' ');
          result.append(year);
          return result.toString();
      }
docs: Generate a list of date terms for the optimized date range search.<p>
  
  @param date the date for get the date terms for
  
  @return a list of date terms for the optimized date range search
  
  @see CmsSearchIndex#getDateRangeSpan(long, long)