luifFriendlyRange

A filter to display a block having a start and an end, the start and end may be the same day/year/month and you dont want to repeat the same information so you can't just use start.format('LL') - end.format('LL')

Will try to find property start, startsOn, startsAt, end, endsOn, endsAt

If both start's and end's year is the current year, it will not be displayed because saying "September 25th - October 2nd" implies "September 25th - October 2nd, this year"

It has the parameter excludeEnd for when you are dealing with block going from start included to end excluded. Example : september is from September 1st included to October 1st excluded or from Septembre 1st included to September 30th included

Usage

{{ myBlock | luifFriendlyRange }}
{{ myBlock | luifFriendlyRange : true }}

myBlock : {{ myBlock | luifFriendlyRange }}

myBlock with end excluded : {{ myBlock | luifFriendlyRange : true }}