handlebars-intl icon indicating copy to clipboard operation
handlebars-intl copied to clipboard

Dates interval with format long: do non repeat year

Open caneta opened this issue 8 years ago • 0 comments

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.

caneta avatar Sep 10 '16 06:09 caneta