/**
  * @param \DateTime $date
  *
  * @return string
  */
 public function dateShortHover(\DateTime $date)
 {
     $fullDate = $this->formatter->date($date, SimpleDateFormatter::FULL) . ', ' . $this->formatter->time($date, SimpleDateFormatter::SHORT);
     return sprintf('<span title="%s">%s</span>', $fullDate, $this->dateShort($date));
 }
 /**
  * @param \DateTimeInterface|int|string $dateTime
  * @param int|string                    $type     full, long, medium, short or none
  *
  * @return string
  */
 public function date($dateTime, $type = SimpleDateFormatter::MEDIUM)
 {
     return $this->formatter->date($dateTime, $this->toType($type));
 }