MCPcopy Index your code
hub / github.com/simstudioai/sim / getDaysInMonth

Function getDaysInMonth

packages/emcn/src/components/calendar/calendar.tsx:31–33  ·  view source on GitHub ↗
(year: number, month: number)

Source from the content-addressed store, hash-verified

29const DEFAULT_RANGE_END_TIME = '23:59'
30
31function getDaysInMonth(year: number, month: number): number {
32 return new Date(year, month + 1, 0).getDate()
33}
34
35function getFirstDayOfMonth(year: number, month: number): number {
36 return new Date(year, month, 1).getDay()

Callers 1

useCalendarViewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected