[[+tv.eventDate]]
[[+tv.eventEndDate]]
{ "name": "[[+pagetitle]]", "image": "[[+tv.eventCoverPage]]", "day": "[[+tv.eventDate:strtotime:date=`%d`]]", "month": "[[+tv.eventDate:strtotime:date=`%m`]]", "year": "[[+tv.eventDate:strtotime:date=`%Y`]]", "time": "[[+tv.eventDate:strtotime:date=`%R %P`]]", "duration": "2", "location": "[[+tv.eventLocation]]", "description": [[+content:toStripJson]] }
This question has been answered by BobRay. See the first response.
:date = `%j` will give you the day of the year (0 - 366), so (start - end) +1 should give you the duration in days unless the event spans two separate years.
I changed it to (End-Start)+1