Dates & Timezones

React Date & Scheduling Guardrails

Scheduling guardrails eliminate MM/DD versus DD/MM date confusion, detect cross-timezone meeting mismatches, and flag overlapping calendar bookings before appointments are confirmed.

Scheduling kit

03/04 read the wrong way, the wrong time zone and the clash nobody saw.

pnpm dlx shadcn@4.21.0 add @bollard/scheduling-pack

Components in Dates & scheduling (27)

React 19+ · Tailwind v4 · shadcn
Scheduled QueueStyled

Keeps scheduled sends visible: live countdowns, a last-chance window before the cancel cutoff, quiet-hour warnings and missed sends flagged.

Stops: Scheduled campaign sent at 3am
Relative Date InputStyled

Stops a date typed the way people say it ("next Fri", "the 10th") from landing on the wrong day by asking when the phrase has two readings.

Stops: Next Friday lands on the wrong day
Date Sanity InputStyled

Reads a date back with its weekday and catches year typos, dates on the wrong side of today and weekends, so bookings aren't made for the wrong day.

Stops: Booked on the wrong date
Timezone PickerStyled

Finds time zones by city, country or abbreviation and lists every meaning of ambiguous ones like IST or CST instead of guessing.

Stops: Meeting scheduled in the wrong zone
Notice Period CheckStyled

Works out the real last working day from a resignation and the notice policy, so nobody resigns towards the wrong date.

Stops: Wrong last working day after resigning
Leave Request CheckStyled

Reads a time-off request back day by day, so it doesn't use more leave than the person thinks or leave a gap they didn't intend.

Stops: Leave request burns extra days
Time ConfirmStyled

Asks AM or PM when a typed time is ambiguous and catches times a clock change skips or repeats, so meetings aren't 12 hours off.

Stops: Meeting booked 12 hours off
Range PairStyled

Catches backwards, empty or wildly oversized date and number ranges, and repairs them the likely way (next year for Dec → Jan).

Stops: Backwards date or price range
Schedule ReadbackStyled

Reads a cron expression back in plain English with the next runs in your zone and the server's, catching classic cron traps.

Stops: Cron job fires at the wrong time
Duration InputStyled

Parses durations typed many ways and reads them back in words, so 1.5 isn't logged as 1 h 50 min on a timesheet.

Stops: Timesheet logs 1.5 as 1h50
Shift Time InputStyled

Reads shift times the way they're meant, so 22:00–06:00 is 8 h overnight and 9–5 isn't logged as 20 h.

Stops: Night shift logged as 20 hours
Recurrence ScopeStyled

Reduces edits that hit more of a recurring series than intended by listing exactly which dates each scope choice changes.

Stops: Edited whole series instead of one
Stay LengthStyled

Reads a date range back as nights and days so bookings and leave requests aren't off by one.

Stops: Booked one night too few
Event OverlapStyled

Lists what a new or moved calendar event runs into and moves it to the nearest free slot, so meetings aren't booked on top of each other.

Stops: Meeting booked on top of another
Cutoff PickerStyled

Counts down to a store's order cutoff in store time with the shopper's time beside it, so an order doesn't land on a different day than expected.

Stops: Order missed today's delivery cutoff
Trip Date ChainStyled

Lines up hotel nights under the flights and catches a stay booked for the wrong night, like a room from the date of a 00:50 landing.

Stops: Hotel booked for the wrong night
Meeting Time SpreadStyled

Shows every attendee's local day under a meeting-time slider and suggests the kindest slot, so the same person doesn't always take the 3 AM call.

Stops: Same colleague always gets 3 AM calls
BNPL Schedule CheckStyled

Lays out buy-now-pay-later payments on a calendar with paydays and other plans, so an instalment doesn't fail on an expired card or before payday.

Stops: Instalment fails on an expired card
DST Shift NoticeStyled

Lists who sees a recurring meeting move by an hour when daylight saving changes on different dates, so part of the team doesn't miss it.

Stops: Meeting moves an hour after daylight saving
Timezone MismatchStyled

When the device's time zone differs from the account's, shows both clocks and asks once which to use, so times aren't misread while travelling.

Stops: Misread every time by hours while travelling
Maintenance WindowStyled

A maintenance banner in the reader's own time zone, with a countdown and a warning before starting a job that would be cut off.

Stops: Work lost to planned downtime
Calendar External Guest GuardStyled

Shows what outside guests on an internal invite will actually see, so an agenda, file or guest list isn't shared beyond your domain by mistake.

Stops: Internal agenda shared with outside guests
Out of Office CheckStyled

Reads an auto-reply back with exactly when it runs and who gets what, so it doesn't reply all day on the day you're back or tell strangers too much.

Stops: Auto-reply runs on the day I'm back
Send Time CheckStyled

Shows the recipient's local time next to Send and offers to schedule for their next working morning when it's night, weekend or a holiday there.

Stops: Message landed at 2 AM their time
Invite CheckStyled

Shows a meeting's start in every guest's own time zone and flags 3 AM slots, weekends, holidays, typo'd domains and duplicate guests before you send.

Stops: Invite lands at 3 AM for guests
DeadlineStyled

Shows time left and the exact moment in both your time zone and the owner's, so a deadline isn't missed to a time-zone slip or a misread midnight.

Stops: Missed a deadline by a time zone
ETA RangeStyled

Quotes delivery as a realistic date range, naming a likely day only when one stands out, so customers aren't promised an impossible day.

Stops: Delivery promised on an impossible day

Frequently Asked Questions about Dates & scheduling Guardrails

How do I prevent confusion between MM/DD and DD/MM date formats?

Unambiguous Date (`unambiguous-date`) writes months out as words (e.g. '04 Apr 2026') to eliminate ambiguity. Install with `npx shadcn@4.21.0 add @bollard/unambiguous-date`. Limitation: canonical timestamps must still be formatted as ISO 8601 (YYYY-MM-DD).

How do I prevent scheduling meetings across conflicting timezones?

Timezone Difference Alert (`timezone-difference-alert`) computes local business hours for all attendees and flags middle-of-the-night invites. Install with `npx shadcn@4.21.0 add @bollard/timezone-difference-alert`. Limitation: calendar availability APIs must verify actual free/busy slots.

How do I detect overlapping bookings in appointment forms?

Overlap Check (`overlap-check`) flags double-booked time windows in real time. Install with `npx shadcn@4.21.0 add @bollard/overlap-check`. Limitation: backend booking APIs must use serializable database transactions to prevent race conditions.

How do I validate recurring schedule frequencies?

Recurrence Preview (`recurrence-preview`) displays an interactive calendar list of the next 10 occurrences before saving. Install with `npx shadcn@4.21.0 add @bollard/recurrence-preview`. Limitation: maximum recurrence end dates must be bounded on the server.