Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/simstudioai/sim
/ getFirstDayOfMonth
Function
getFirstDayOfMonth
packages/emcn/src/components/calendar/calendar.tsx:35–37 ·
view source on GitHub ↗
(year: number, month: number)
Source
from the content-addressed store, hash-verified
33
}
34
35
function getFirstDayOfMonth(year: number, month: number): number {
36
return new Date(year, month, 1).getDay()
37
}
38
39
function pad2(value: number): string {
40
return value.toString().padStart(2,
'0'
)
Callers
1
useCalendarView
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected