• Documentation
  • Ask a Question
  • Zeroplat.io
  • Documentation
  • Ask a Question
  • Zeroplat.io
  • Introduction
    • Welcome to Zeroplat
    • Video Intro
  • Get Started
    • Requirements
    • Installation
  • Management
    • Resources
    • SaaS
      • Multi-tenancy
      • Editions
    • Permissions
    • Organization Units
    • Language
      • Languages
      • Language Texts
    • Roles
    • User
      • Users
      • Invite Users
    • Audit Logs
  • Visual Builder
    • Overview
    • Resources
      • Menu & Navigation
      • Pages
      • Dashboards
      • Components
      • Generate Pages from Datasource
    • Design
      • JS Query
      • Transformer
      • Variable
    • Event Designer
      • Tasks
        • Execute query
        • Start workflow
        • Show page
        • Close Page
        • Set variable
        • Show notification
        • Set components props
      • Switch
        • If
        • Confirm box
        • Confirm popover
    • Data
    • Preview & Publish
    • Components
      • Common Properties
        • Layout
        • Style
        • Actions
        • Validations
        • Tooltip
      • Inputs
        • Button
        • Input
        • InputNumeric
        • ComboBox
        • MulticolumnCombobox
        • Checkbox
        • CheckboxGroup
        • Switch
        • RadioGroup
        • ToggleButtonGroup
        • LocalizedInput
        • Slider
      • Business
        • OrganizationUnitBrowser
        • RoleBrowser
        • UserBrowser
      • Data display
        • DataGrid
      • Editors
        • QuillEditor
      • Feedback
        • Alert
        • Progress
      • File
        • Dropzone
        • FileButton
        • FileInput
      • Layout
        • SplitLayout
      • Navigation
        • TabBar
      • Pickers
        • DatePicker
        • DateTimePicker
        • DateRangePicker
        • DateCalendar
        • TimePicker
        • IconPicker
      • Surfaces
        • Card
      • Charts
        • AreaChart
  • Backend
    • Overview
  • Integrations
    • Overview
    • Environments
    • Database
      • MS SQL
      • SQL Lite
      • My SQL
      • PostgreSQL
    • API
      • Rest API
      • SMTP
      • Google Sheets
      • Twillio SMS
    • Javascript
      • Variable
      • Transformer
      • JS Query
    • Zeroplat Hosted
      • Zeroplat E-mail
  • Workflow (BPM)
    • Overview
    • Building and managing workflows
    • Inbox
    • Outbox
  • Marketplace
    • Overview
    • Management

DateRangePicker

2 views 0

Written by Zeroplat
22 September 2025

The Date Range Picker component enables users to select a start date and an end date within a single control. It is especially useful in reporting, filtering data, reservations, and scheduling applications.

1. Basic Properties

  • Name → Unique identifier for the component (e.g., DateRangePicker1).
  • Start date label → Text displayed for the start date input (e.g., Start Date).
  • End date label → Text displayed for the end date input (e.g., End Date).
  • Start date placeholder → Placeholder for the start date field.
  • End date placeholder → Placeholder for the end date field.
  • Default value → Initial start and end date values.
    • Example: {{ [new Date(), new Date()] }} This initializes the range with the current date for both start and end.

States

  • Read only → Prevents editing while still showing values.
  • Show clear button → Allows users to reset the selected range.
  • Disabled → Disables the control completely.
  • Hidden → Hides the control but keeps it functional in logic.

2. Display Format

Defines how the start and end dates are displayed. This should align with regional or business formatting rules.

  • Examples:
    • shortdate
    • EEEE, d of MMM, yyyy
    • 'Year': yyyy, 'Month': MMM, 'Day': d

📘 Consistency with the DatePicker / DateTimePicker Format property is recommended.

const date = new Date(2021, 6, 15, 20, 45, 34);
 
type: "longDate" // Thursday, July 15, 2021
type: "longTime" // 8:45:34 PM
type: "longDateLongTime" // Thursday, July 15, 2021, 8:45:34 PM
type: "monthAndDay" // July 15
type: "monthAndYear" // July 2021
type: "quarterAndYear" // Q3 2021
type: "shortDate" // 7/15/2021
type: "shortTime" // 8:45 PM
type: "shortDateShortTime" // 7/15/2021, 8:45 PM
type: "millisecond" // 000
type: "second" // 34
type: "minute" // 45
type: "hour" // 20
type: "day" // 15
type: "dayOfWeek" // Thursday
type: "month" // July
type: "quarter" // Q3
type: "year" // 2021

3. Layout

Handles grid placement, spacing, and responsiveness.

📘 See Common Properties → Layout.

4. Events

  • onChange → Triggered whenever the start or end date is changed.
    • Can be used to refresh reports, filter results, or validate date ranges.

5. Validations

Supports validation rules such as:

  • Ensuring start date ≤ end date.
  • Requiring both dates to be filled.
  • Restricting range to a maximum length (e.g., 30 days).

📘 See Common Properties → Validations.

6. Business Use Cases

  • Reporting dashboards → Filter results by date ranges (e.g., sales between two dates).
  • Reservations & bookings → Select check-in and check-out dates.
  • Project/task management → Define project timelines or task deadlines.
  • Data filtering → Apply constraints to datasets (e.g., invoices created between two dates).

7. Style

Can be styled for custom colors, borders, and spacing.

📘 See Common Properties → Style.

✅ The DateRangePicker component is the go-to control for scenarios requiring two correlated dates, with built-in flexibility for formatting, validation, and clear user interactions.

Was this helpful?

Yes  No
Related Articles
  • DateCalendar
  • Progress
  • TimePicker
  • IconPicker
  • DateTimePicker
  • FileInput

Didn't find your answer? Contact Us

Previously
DateTimePicker
Up Next
DateCalendar
Copyright 2025 Zeroplat.io. All Rights Reserved