MCPcopy Create free account
hub / github.com/Lobos/react-ui / addMonths

Function addMonths

src/utils/datetime.js:16–20  ·  view source on GitHub ↗
(d, months)

Source from the content-addressed store, hash-verified

14}
15
16export function addMonths (d, months) {
17 let newDate = clone(d);
18 newDate.setMonth(d.getMonth() + months);
19 return newDate;
20}
21
22export function getFirstDayOfMonth (d) {
23 return new Date(d.getFullYear(), d.getMonth(), 1);

Callers

nothing calls this directly

Calls 1

cloneFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…