You could use a Calculate Date activity twice to determine days a week before and after today. Then, use a Set Form Element Limits activity to use these values as the limits of a Date Picker.
Date |
Required Type: String The date to start from. Supported values are "today", "this-week", "this-month" and "this-year". ▪"today" - The current date. ▪"this-week" - The first day of the current week. Sunday is considered the start of the week, regardless of locale. ▪"this-month" - The first day of the current month. ▪"this-year" - The first day of January of the current year. |
Use UTC |
Optional Type: Boolean When true, the result will be a UTC date. Otherwise, a local date is returned. The default is false. |
Offset Amount |
Optional Type: Number The amount by which to offset the initial date. This can be a positive or a negative value. The default is zero. |
Offset Units |
Optional Type: String The type of units that offset amount represents. The default is "day". Supported values are "day", "week", "month" and "year". |
date |
Type: Date The result as a Date object. |
value |
Type: Number The result as the number of milliseconds since the Unix Epoch. For example: "1360017870652". |
For information about the ID, Display Name, and Description properties, see Properties Common to all Activities.
This activity works when the device has intermittent connectivity to the network.
See also...