/**
  * Set form to a use a `date` field, and set default time period to the last 3 months
  * {@inheritDoc}
  */
 public function getForm()
 {
     $this->setFormType('date');
     if (!$this->getStartDate() && !$this->getEndDate()) {
         $this->setStartDate(new \Datetime('- 3 months'));
     }
     return parent::getForm();
 }
 public function getForm()
 {
     $this->setFormType('date');
     return parent::getForm();
 }