Please enable JavaScript to view this site.

Version:

Navigation: Activities > Activity Reference

Calculate Date Activity

Prev Top Next More

Description

Calculates a Date using an offset from a specified starting point, such as today.

Usage

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.

Inputs

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

Outputs

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

Properties

For information about the ID, Display Name, and Description properties, see Properties Common to all Activities.

Connectivity Requirements

This activity works when the device has intermittent connectivity to the network.

See also...

Set Form Element Limits Activity

© 2024 VertiGIS North America Ltd. All Rights Reserved. | Privacy Center | Imprint
Documentation Version 5.42 (220a4365)