Skip to content

Add future date range presets#2377

Open
ganyicz wants to merge 1 commit intomainfrom
filip/future-date-range-presets
Open

Add future date range presets#2377
ganyicz wants to merge 1 commit intomainfrom
filip/future-date-range-presets

Conversation

@ganyicz
Copy link
Collaborator

@ganyicz ganyicz commented Feb 6, 2026

The scenario

Scheduling and booking applications need future date range presets (Tomorrow, Next Week, Next 30 Days, etc.) in the date picker.

The problem

The DateRangePreset enum only includes past and present presets (Yesterday, Last 7 Days, Last Month, etc.) and there's no built-in way to select future date ranges.

Requested in #1165.

The solution

Add 10 future date range presets that mirror the existing past-facing ones:

New Preset Mirror of
tomorrow yesterday
nextWeek lastWeek
next7Days last7Days
nextMonth lastMonth
nextQuarter lastQuarter
nextYear lastYear
next14Days last14Days
next30Days last30Days
next3Months last3Months
next6Months last6Months
<flux:date-picker mode="range" presets="today tomorrow nextWeek next30Days" />
$this->range = DateRange::tomorrow();
$this->range = DateRange::next30Days();
SCR-20260206-pkxz

Flux Pro: livewire/flux-pro#438
Flux Docs: livewire/flux-docs#148

Fixes #2343 #1156

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add "Tomorrow" preset to DateRangePreset enum

1 participant