Relative Content

Tag Archive for javascriptdate-fns

Date-fns addDays function does not add correct number of days

I am currently working with the date-fns library in JavaScript and I am encountering an unexpected behavior when trying to add days to a date. The issue arises in the createComparisonChart function, where the calculateDataForPeriod function is called in two different scopes.