These docs are for an old release. Info on upgrading to v6
edit doc

Event::formatRange

Formats an event’s dates into a string.

event.formatRange( formatConfig )

Accepts a date formatter.

If the event doesn’t have an end, then the start will be formatted alone.