Closed Andrew1431 closed 3 years ago
Hi @Andrew1431
could you please provide the URL of the doc page you are referring to?
The mentioned function should work as follows (with {addSuffix: true}
):
_.formatDistance( _.subDays(new Date(), 3),new Date(), {addSuffix: true})
// => "3 days ago"
https://date-fns.org/ its a front page example! But thanks, addSuffix is great :)
@Andrew1431 Thanks for pointing this out and apologies for the confusion. We will fix it shortly!