Date picker

<s-date-picker>

Shows a calendar for choosing a date or a range.

Official Shopify docsPolaris 2.0 web component

Sales report date range

Select a start and end date in the calendar. Pass the initial range as two ISO dates separated by a double hyphen.

Select one date within a window

Use allow to constrain selection to a date range while keeping a single-date selection.

Quick date range presets

Set the selected range when a preset is clicked and update it when the merchant makes a custom selection.