{"record":{"id":"78b4543bfc90fa5b","repo":"vuetifyjs/vuetify","slug":"no-dates-found-using-specified-start-date-end-dat","errorCode":null,"errorMessage":"No dates found using specified start date, end date, and weekdays.","messagePattern":"No dates found using specified start date, end date, and weekdays\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/vuetify/src/components/VCalendar/util/timestamp.ts","lineNumber":457,"sourceCode":"  if (stop < getDayIdentifier(start)) {\n    throw new Error('End date is earlier than start date.')\n  }\n\n  while ((!stopped || days.length < min) && days.length < max) {\n    currentIdentifier = getDayIdentifier(current)\n    stopped = stopped || currentIdentifier === stop\n    if (weekdaySkips[current.weekday] === 0) {\n      current = nextDay(current)\n      continue\n    }\n    const day = copyTimestamp(current)\n    updateFormatted(day)\n    updateRelative(day, now)\n    days.push(day)\n    current = relativeDays(current, nextDay, weekdaySkips[current.weekday])\n  }\n\n  if (!days.length) throw new Error('No dates found using specified start date, end date, and weekdays.')\n\n  return days\n}\n\nexport function createIntervalList (\n  timestamp: CalendarTimestamp,\n  first: number,\n  minutes: number,\n  count: number,\n  now?: CalendarTimestamp\n): CalendarTimestamp[] {\n  const intervals: CalendarTimestamp[] = []\n\n  for (let i = 0; i < count; i++) {\n    const mins = first + (i * minutes)\n    const int = copyTimestamp(timestamp)\n    intervals.push(updateMinutes(int, mins, now))\n  }","sourceCodeStart":439,"sourceCodeEnd":475,"githubUrl":"https://github.com/vuetifyjs/vuetify/blob/8d153908dffb7592eb389ddbfbab955a0ccc977f/packages/vuetify/src/components/VCalendar/util/timestamp.ts#L439-L475","documentation":"Thrown by createDayList() when, after iterating from start to end while respecting weekdaySkips, zero days were collected. weekdaySkips is a length-7 array (one entry per weekday 0-6) where 0 means 'skip this weekday'. If every weekday in the range is skipped, or max is 0/min forces nothing, days stays empty.","triggerScenarios":"Passing weekdaySkips that is all zeros (no weekdays enabled), passing a single-day range where that weekday is disabled, or passing max=0. Also happens if weekdaySkips is misaligned with the weekday numbering so all hits land on skipped days.","commonSituations":"A VCalendar configured with `weekdays` that excludes every day actually present in the range (e.g. a weekday-only calendar [1,2,3,4,5] pointed at a weekend range), an empty `weekdays: []` prop producing all-zero skips, or a custom interval/visible-days config that sets max too low.","solutions":["Ensure at least one weekday in the [start,end] range has a non-zero entry in weekdaySkips.","Check the `weekdays` prop on VCalendar — it must include at least one weekday present in the range.","Pass max > 0 (default is 42) so the loop can collect days.","Widen the start/end range or relax the weekday filter."],"exampleFix":"// before\nconst days = createDayList(start, end, now, [0,0,0,0,0,0,0]) // throws\n\n// after\n// enable Mon-Fri (weekdaySkips built from weekdays prop)\nconst days = createDayList(start, end, now, [0,1,1,1,1,1,0])","handlingStrategy":"validation","validationCode":"function buildSkips(weekdays: number[]): number[] {\n  const skips = [0,0,0,0,0,0,0]\n  for (const wd of weekdays) skips[wd] = 1\n  if (!skips.some(Boolean)) {\n    throw new Error('At least one weekday must be enabled')\n  }\n  return skips\n}","typeGuard":"function hasEnabledWeekday(weekdaySkips: number[]): boolean {\n  return weekdaySkips.some(s => s > 0)\n}","tryCatchPattern":"try {\n  return createDayList(start, end, now, skips)\n} catch (e) {\n  if (e instanceof Error && /No dates found/.test(e.message)) {\n    return [] // render empty state\n  }\n  throw e\n}","preventionTips":["Derive weekdaySkips from a non-empty `weekdays` prop.","Default the `weekdays` prop to a sane value like [0,1,2,3,4,5,6].","Show an empty-state UI instead of letting the throw propagate to the user."],"tags":["vcalendar","weekday-config","empty-result"],"backgroundTag":null,"analyzedSha":"8d153908dffb7592eb389ddbfbab955a0ccc977f","analyzedAt":"2026-08-12T21:54:20.596Z","schemaVersion":2},"datasetVersion":"2026-08-12T23:17:12.415Z"}