I\'d like the moment().fromNow() functionality, but when the date is close it is too precise - ex. I don\'t want it to show \'in 3 hours\' but \'today\' - so basica
moment().fromNow()
You can use this:
const today = moment(); const tomorrow = moment().add(1, 'days'); const yesterday = moment().subtract(1, 'days');