Skip to content
On this page
How-to Custom Fields 2 min read Updated Sep 28, 2026

Disable dates in the checkout date picker

In short

Open your Date Picker and add rules under Disabled Date rules: Day of the week for weekends, Specific Date or Date Range for holidays, Dynamic for today or tomorrow. For cut-off times and lead times, use a Custom Liquid Expression.

✓ Applies to

  • The Date Picker block
  • Advanced and Deluxe plans

✕ Doesn't apply to

  • Shopify's own delivery date or local delivery settings
  • Limiting how many orders can book the same date
Haven't added a Date Picker yet? Start with the block guide →
Checkout
Order summary 1 item
Cotton Crew Tee
Qty 1 · Midnight
$48.00
June 2026
SuMoTuWeThFrSa
31123456 78910111213 14151617181920 21222324252627
Disabled dates are greyed out in the buyer's calendar

Before you start

  • Add a Date Picker block first. See how.

Steps

1

Open the Date Picker

Open your block under Blocks and click the Date Picker.

2

Add a rule

Under Disabled Date rules, add a rule. Choose a Type and fill in its fields. Add one rule per thing you want to block.

3

Save

Click Done, then Save.

✓

For date fields, click the date button and pick a date. It shows today until you do, but nothing is saved until you click one.

Rule types

A date is blocked if any rule matches. Start and end dates are always included.

TypeBlocks
Day of the weekOne weekday, every week
Specific DateOne date
Date RangeStart to end date
Date BeforeThat date and all before it
Date AfterThat date and all after it
DynamicCurrent Day, Next Day, Previous Day, or All days before today (includes today)
Custom Liquid ExpressionWhatever your expression outputs

Liquid recipes

Output dates (2026-12-25), day names (Saturday), ranges (2026-12-24--2027-01-02, --2026-10-01, 2026-10-01--) or months (2026-12), separated by commas.

Weekends and holidays in one rule

Saturday, Sunday, 2026-12-25, 2027-01-01

Block tomorrow after 12:00 (change 12 to your cut-off hour)

{% assign hour = currentDateTime | date: "%H" %}
{% if hour >= 12 %}
{{ currentDateTime | date: "%s" | plus: 86400 | times: 1000 | date: "%Y-%m-%d" }}
{% endif %}

After 12:00 on Friday, block next Monday

{% assign hour = currentDateTime | date: "%H" %}
{% assign day = currentDateTime | date: "%A" %}
{% if day == "Friday" and hour >= 12 %}
{{ currentDateTime | date: "%s" | plus: 259200 | times: 1000 | date: "%Y-%m-%d" }}
{% endif %}

Two-day lead time

--{{ currentDateTime | date: "%s" | plus: 172800 | times: 1000 | date: "%Y-%m-%d" }}

Each extra day is 86400 more after plus:. Always keep times: 1000.

Check it works

Open checkout. Blocked dates are greyed out and other dates can be picked. To test a cut-off, set it to hour >= 0, check, then put your real hour back.

Good to know

  • Dynamic uses UTC time. Liquid uses the buyer’s device clock.
  • Buyers can still check out without picking a date.
  • There’s no limit on orders per date.
  • Liquid supports assign, if, unless and for. Not capture, case or JSON.

Not working?

  • Liquid rule blocks nothing: output plain values, not JSON like ["Saturday"].
  • A date in 1970 is blocked: add times: 1000.
  • Wrong day near midnight: use a Liquid rule instead of Dynamic.

Frequently asked

How do I disable weekends? +

Add two Day of the week rules, one for Saturday and one for Sunday. Each rule takes one day.

How do I stop same-day and next-day orders? +

Add a Dynamic rule set to All days before today (this also disables today) and another set to Next Day. For a longer lead time, use the lead-time Liquid recipe on this page.

Can I disable tomorrow only after a cut-off time? +

Yes, with a Custom Liquid Expression. The cut-off recipe on this page disables tomorrow once the buyer's clock passes 12:00. Change 12 to your cut-off hour.

Are the boundary dates included? +

Yes. Date Range disables both its start and end dates, Date Before disables the chosen date too, and Date After disables the chosen date onwards.

Related guides

Still stuck? Open the app and use Support to chat with the team, or contact us. Don't have the app yet? Install Checkout Ninja.