Skip to content

EventDateHelper

Helper class for working with event dates.


  • Full name: \boundstate\events\helpers\EventDateHelper
  • This class is an Abstract class

Methods

formatDate

public static formatDate(\Recurr\Recurrence $event, ?string $format = 'medium', ?string $timezone = null, ?bool $allDay = false): string
  • This method is static. Parameters:
Parameter Type Description
$event \Recurr\Recurrence
$format ?string
$timezone ?string
$allDay ?bool

formatDateRange

public static formatDateRange(\boundstate\events\models\EventDate $event, string $format = 'medium', ?string $timezone = null): string
  • This method is static. Parameters:
Parameter Type Description
$event \boundstate\events\models\EventDate
$format string
$timezone ?string