npm date-fns/difference_in_calendar_days code example Example: date-fns npm package npm install date-fns --save # or with yarn yarn add date-fns