These docs are for an old release.
Info on upgrading to v5
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.