code: public void setDay(Day d)
     {
        if (m_day != null)
        {
           m_parentCalendar.removeHoursFromDay(this);
        }
  
        m_day = d;
  
        m_parentCalendar.attachHoursToDay(this);
     }
docs: Set day.
  
  @param d day instance