Warp DatePicker demo — a Filament date picker that knows public holidays, your company’s days off and business days. Change or delete anything; the data is reset every hour. warpui.com About Warp DatePicker Docs Ask a question Support filamentphp.com
Skip to content

Examples

The date fields on this page use the calendar of Harbor Supply Co. in Boston: US federal holidays, the company’s days off and business hours on Boston time. The badge at the top right shows whether the company is open now; if your time zone is different, it adds Boston’s (such as GMT-5). In Boston, today is Sun, Nov 22. If your computer is on another time zone, a gray “Your time: …” line under a field shows the same moment on your clock. Nothing is saved.

25Public holiday (red, including the weekday off when it falls on a weekend; the dot means hover over it to see the name) 28Company day off (yellow) 5A weekend day the company opens (green) 14Weekends and hours outside business hours (gray; can be picked) 11Crossed out: a day or time that can’t be picked in that field (hover over it to see why) 22Today

How many months to show

How many months the picker shows when it opens (months()).

Open it: 3 months side by side.

Open it: 4 months side by side.

Open it: 5 months side by side.

Open it: 6 months side by side.

Open it: 12 months side by side.

When someone picks a day off

Public holidays, company days off and weekends. Each field below handles them in one way, with onDayOff().

Click the next public holiday, Thu, Nov 26 (Thanksgiving Day); if it isn’t in the month shown, go forward with › at the top right of the calendar. It is accepted, and a note under the field says it is a public holiday (onDayOff(DayOff::Warn)).

Click the next public holiday, Thu, Nov 26 (Thanksgiving Day); if it isn’t in the month shown, go forward with › at the top right of the calendar. The button under the field changes it to the next business day (onDayOff(DayOff::Suggest)).

Weekends, public holidays and company days off (such as 28–31 December) can’t be clicked, and typing one is refused (onDayOff(DayOff::Disallow)).

Counting business days

Business days skip weekends, public holidays and company days off.

Earlier days can’t be clicked. Weekends, public holidays and company days off are skipped, so it is 8 days ahead on the calendar (minBusinessDaysFromToday(5)).

Pick a day: under the field it says how many business days from today it is (showBusinessDaysFromToday()).

Change this date and the days you can pick for shipping move with it.

Days earlier than 2 business days after the order date can’t be clicked. With the current order date, you can pick from Tue, Nov 24 (minBusinessDaysAfter()).

Payment terms

You only enter the invoice date. The due dates below fill in by themselves when it changes. A day off moves them to a business day.

Change this date: every due date below is worked out again.

30 days after the invoice; on a day off, the next business day.

The last day of next month; on a day off, the business day before. Fri, Dec 25–Thu, Dec 31 is a public holiday, the weekend, a company day off in a row, so it is demo.examples.previous_business_day, Thu, Dec 24.

Invoices up to the 20th are paid on the 10th of next month; later ones a month after that.

5 business days after the invoice, not counting weekends, public holidays or company days off.

The last day of this month; on a day off, the business day before, so it never moves into next month.

Your own data on the calendar

Show numbers from your app on the calendar, or close the days your data says are full.

Under each business day: how many deliveries can still be booked that day (“2 left”) (dayLabels()).

Fully booked days can’t be clicked; hover over one and it says “Fully booked”. For example, Fri, Nov 27 is fully booked (unavailableDates()).

Ranges of days

A first day and a last day.

Click the first day, then the last day. While you choose, it shows the number of days and business days (WarpDateRangePicker). The buttons for common ranges are shown in the next field, so they are turned off here.

Open it: buttons on the left of the calendar pick today, this week, the last 30 days, this month, last month, this year and more in one click. They appear without any setting (default).

After you click the first day, days more than 90 days away can’t be clicked, and the “Last day” box at the top of the open calendar shows until when you can pick. Go forward with › to see the later days crossed out (maxDays(90)).

Keep the calendar open

The calendar stays on the page without clicking the field.

The calendar stays on the page without clicking the field. The day you click goes into the field above it (inline()).

Ways to pick a time

Fields that pick a day and a time together. Clicking a day puts in the earliest time you can pick that day; change it with the time buttons on the right. Business hours are 9–5 Boston time, with lunch from 12 to 1; times outside them are gray, but you can still pick them (to block them, see the “Only business hours” field below) (WarpDateTimePicker).

Click a day: buttons for every 15 minutes appear on the right. “Now” at the top right puts in the current time in Boston.

Pick the hour and the minutes from two lists (timeInput(TimeInput::Dropdowns)).

The same clock face as on Android phones: press the hour, then the minutes. In languages that write 24-hour times, the outer ring is 1–12 and the inner ring 13–23 and 0. Minutes go by 15, the default: 00, 15, 30 and 45 (timeInput(TimeInput::Clock)). Until you press the minutes, the field keeps its old time.

The same clock face, but the small dots between the numbers can be pressed too, so you can pick any minute, such as 10:37 (minutesStep(1)).

The time buttons go every 5 minutes instead of every 15 (minutesStep(5)).

Morning (9–12), afternoon (12–5) and evening (5–9) buttons put in the start of that part: 9:00 AM, 12:00 PM or 5:00 PM. The parts are set apart from business hours, and the buttons don’t filter the times below (dayParts()).

10:00 AM and 2:00 PM are buttons above the other times (favoriteTimes()).

Untouched, the time keeps its seconds. They stay when only the day changes; picking another time starts it at :00. Saved value: 2026-11-22 15:15:42 UTC

Business hours and times

Rules about which times can be picked.

9 AM to 5 PM are listed; the lunch break (12–1) is crossed out and can’t be clicked (businessHoursOnly()).

Click a day, then 12:15 PM in the lunch break. Under the field it says the time is outside business hours, with a button that changes it to 1:00 PM. Type a time after closing, such as 6pm, and the button changes it to 9:00 AM on the next business day (businessHoursOnly(DayOff::Suggest)).

Earlier times can’t be clicked. Nights, the lunch break and weekends don’t count (minBusinessHoursFromNow(4)).

Pick a time: under the field it says how many business hours from now it is (showBusinessHoursFromNow()).

Each half hour shows bookings / limit (3) and a bar for how full it is. A full time is crossed out and can’t be clicked (slotCounts()). 12:00 and 12:30 PM have no numbers because the booking data has none for the lunch break; as times, they can still be picked like in the other fields.

4:30 PM is crossed out and can’t be clicked; hover over it to see why (after the last truck) (unavailableTimes()).

Places and time zones

A calendar for each place, and times in another time zone.

Saturdays look like the other working days and count as business days (workingDays([1, 2, 3, 4, 5, 6])).

Each place can have its own days off, apart from the company’s. The west coast warehouse’s own day off (Forklift inspection, Tue, Dec 1) shows in yellow (calendar('west')).

Pick the time on Los Angeles time. Every field saves in the app’s time zone (UTC here); timezone() only changes the clock you pick on. The company’s business hours (9–5 in Boston) are 6–2 in Los Angeles (timezone()). Saved value: nothing picked yet

Pick a time: the London and Tokyo times appear under the field (alsoShowTimezones()).

Deadlines in business hours

You only enter the time the order came in. The deadlines below fill in by themselves when it changes, counting only the hours you are open (TimeTerms).

It starts at 2:30 PM on the last business day. Change it and every deadline below is worked out again.

8 business hours after it came in; nights, the lunch break and weekends don’t count.

Received on a business day before 3 PM: 3 PM that day. After 3 PM, or on a day off: 3 PM on the next business day.

Noon on the business day after the order came in.

10 AM, 2 business days after it was received.

Ranges of time

A start and an end, each with a day and a time.

Click a start day and a start time, then a length button (1, 2, 4 or 8 hours): the end is set. It skips the lunch break, nights and weekends, so 4 hours from 11:00 AM ends at 4:00 PM (durationsInBusinessHours()).

Pick 10:00 PM as the start and 6:00 AM as the end: the end is on the next day. This is the default. (So that night times can be picked, this field lists 0:00–24:00 with timeRange('00:00', '24:00').)

Typing

Type into the field with the keyboard, without opening the calendar.

Type 7/4, 2026-12-25 or 20261225 and press Enter. The order of day and month follows the page language (change it in the menu at the top): 7/4 is July 4 in English and Japanese, 7 April in German. Works without any setting (default).

Type 1330, 13:30, 1:30pm or 13時半 and press Enter: that time on the day already chosen, or today in Boston. Works without any setting (default).

Public holidays of each country

Only this section leaves out the company calendar and shows just the public holidays of the country picked. Pick Japan and Sundays and holidays turn red and Saturdays blue, as in Japanese calendars. Hover over a holiday to see its name (country()).

Pick any of the 157 countries and regions.
Select an option.

Pick another country above: the red days with a dot (public holidays) in these three months change at once. Weekends are colored the way that country’s calendars do it (in Japan, Saturday is blue and Sunday red). The today frame is Boston’s today here too.

States and regions have their own holidays: Epiphany on 6 January is red here, but a working day in most other German states. Open it and go forward with › to January to see it.

Business hours in your own screens

The same business hours as the date fields, used elsewhere.

Closed
The same answer as the badge in the top bar (isOpen()).
Opens Mon, Nov 23 9:00 AM
While open, the time it closes (closesAt()); while closed, the next time it opens (nextOpen()). The time is Boston time. The badge in the top bar shows the weekday instead of the date, and adds Boston’s time zone (such as GMT-5) if yours is different.
Open the JSON
A link your order site can read without signing in, to show “earliest delivery Mon, Nov 23 2:00 PM”. The earliest is 4 business hours from now, not counting nights, the lunch break or weekends. It answers in JSON; “earliest” is that time (nextBusinessTimeUrl()).
Nov 23, 2026 3:00 PM 5 hours left (business hours)
The time left until the deadline, counting only business hours. Table columns can show the same (WarpDateTimeEntry, WarpDateTimeColumn).
Nov 20, 2026 3:00 PM 2 hours late (business hours)
When the deadline has passed, it shows in red how late it is, counting business hours.

Send it to the server

Typing can’t get past the pickers above: a day or time they don’t allow is refused right away. But someone could change what the browser sends, so the server checks every value again. The button below sends next New Year’s Day to “Days off can’t be picked” and Sunday 3:00 AM to “Only business hours”, as if the browser had been changed. See what the server says.