MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / dailyNoteLocationForDate

Function dailyNoteLocationForDate

packages/app-core/src/lib/vault-layout.ts:834–840  ·  view source on GitHub ↗
(
  date = new Date(),
  settings: VaultSettings | null | undefined
)

Source from the content-addressed store, hash-verified

832}
833
834export function dailyNoteLocationForDate(
835 date = new Date(),
836 settings: VaultSettings | null | undefined
837): DailyNoteLocation {
838 const normalized = normalizeVaultSettings(settings)
839 return dailyNoteLocationForPattern(date, normalized, currentDailyNotePattern(normalized))
840}
841
842export function weeklyNoteTitle(date = new Date()): string {
843 return `${getISOWeekYear(date)}-W${pad(getISOWeek(date))}`

Callers 3

store.tsFile · 0.90
findDailyNoteForDateFunction · 0.85

Calls 3

currentDailyNotePatternFunction · 0.85
normalizeVaultSettingsFunction · 0.70

Tested by

no test coverage detected