MCPcopy Index your code
hub / github.com/anomalyco/opencode / formatDate

Function formatDate

packages/console/core/script/black-stats.ts:278–281  ·  view source on GitHub ↗
(value: Date | null | undefined)

Source from the content-addressed store, hash-verified

276}
277
278function formatDate(value: Date | null | undefined) {
279 if (!value) return null
280 return value.toISOString().split("T")[0]
281}
282
283function formatWeek(value: number) {
284 return formatDate(isoWeekStart(value)) ?? ""

Callers 2

black-stats.tsFile · 0.70
formatWeekFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected