code: public CmsJspInstanceDateBean getPreviousFor(Object date) {
  
          Date d = toDate(date);
          if ((d != null) && (m_dates != null) && (!m_dates.isEmpty())) {
              Date lastDate = m_dates.first();
              for (Date instanceDate : m_dates) {
                  if (instanceDate.after(d)) {
                      return new CmsJspInstanceDateBean((Date)lastDate.clone(), CmsJspDateSeriesBean.this);
                  }
                  lastDate = instanceDate;
              }
              return new CmsJspInstanceDateBean((Date)lastDate.clone(), CmsJspDateSeriesBean.this);
          }
          return getLast();
      }
docs: Returns the next event of this series that takes place at the given date or after it.<p>
  
  In case this is just a single event and not a series, this is identical to the date of the event.<p>
  
  @param date the date relative to which the event is returned.
  
  @return the next event of this series