You are here

public function Event::getEndDate in Booking and Availability Management Tools for Drupal 8

Overrides EventInterface::getEndDate

File

modules/bat_event/src/Entity/Event.php, line 159
Contains \Drupal\bat_event\Entity\Event.

Class

Event
Defines the Event entity.

Namespace

Drupal\bat_event\Entity

Code

public function getEndDate() {
  $date = new \DateTime($this
    ->get('event_dates')->end_value);
  return $date;
}