@monsterbilligt/date-fns-holidays
v1.1.0
Published
Provides replacement functions for `[email protected]` that take into account Danish holidays.
Downloads
4
Readme
date-fns-holidays
Provides replacement functions for [email protected]
that take into account Danish holidays.
Installation
npm i @monsterbilligt/date-fns-holidays
Usage
import { addBusinessDays, differenceInBusinessDays } from '@monsterbilligt/date-fns-holidays'
const newDate = addBusinessDays(new Date(), 10) // Adds 10 business days to today
const diff = differenceInBusinessDays(newDate, new Date()) // Should be 10