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

Function getDaysInMonth

src/utils/datetime.js:26–33  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

24}
25
26export function getDaysInMonth (d) {
27 let resultDate = getFirstDayOfMonth(d);
28
29 resultDate.setMonth(resultDate.getMonth() + 1);
30 resultDate.setDate(resultDate.getDate() - 1);
31
32 return resultDate.getDate();
33}
34
35export function getFullMonth (d) {
36 let month = d.getMonth();

Callers 1

getWeekArrayFunction · 0.85

Calls 1

getFirstDayOfMonthFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…