handlebars-intl
handlebars-intl copied to clipboard
Dates interval with format long: do non repeat year
I have 2 dates in order to create the following message:
{From {startDate, date, long} to {endDate, date, long}}
That's nice, but is that possible to avoid the year repetition if it is the same for startDate
and endDate
?
For example now I get From May 19, 2016 to May 23, 2016 and I would like to have From May 19 to May 23, 2016.
If this is possible, how to get it?
Thank you.