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. |