Skip to main content
Skip table of contents

DateRange

This class stores a date range. Its properties are @AuraEnabled to make them accessible in flows.

Use the offsetDays property in flows to easily modify the range, without having to define date literals.

For example, to have a range start tomorrow rather than today, set its offsetDays to 1. To move a date range forward, add its durationDays to its offsetDays. See Blueprint Time Slot Picker Flow for a flow template that applies this example.

Properties

Name

Type

Description

startDate

Date

The start date of the range. Defaults to today.

durationDays

Integer

The number of days that this range spans. Defaults to 7 days.

offsetDays

Integer

The offset in days to apply to the start date, to get the actual start date. Can be negative. Defaults to zero.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.