Skip to content

Enum DateFormat

Format for event dates: MEDIUM or LONG, optionally limited to only the dates or the times.

Cases

  • MEDIUM
  • LONG
  • MEDIUM_DATE
  • LONG_DATE
  • MEDIUM_TIME
  • LONG_TIME

Methods

parse

Returns the format for a case or its value (e.g. 'mediumDate').

public static parse(self|string $format): self
$format self|string
return self
throws InvalidArgumentException if the value isn't a valid format

length

public length(): FormatLength
return FormatLength

hasDates

public hasDates(): bool
return bool

hasTimes

public hasTimes(): bool
return bool